HLVD PIC 18F4520

Find out how to setup your programmer's software and how to solve many common problems.

Moderator: phalanx

Post Reply
manatarms
Posts: 4
Joined: Mon Apr 14, 2014 8:47 am

HLVD PIC 18F4520

Post by manatarms » Sat Aug 09, 2014 8:03 am

Hey everyone,

I'm looking for some help with my micro controller project.

I need to create a board that can sense that a buzzer button is pressed and on 3 presses make an led blink.

I was wondering if I should use the HLVD module of the pic18f4520 to detect the drop in voltage when the button is pressed.
I dont know how this module works or if there is a better way to detect the press of the buzzer.
I have been searching for sample code or any sort of guidance on the internet without luck.

Any help will be greatly appreciated.

Thank you.

waltr
Support Volunteer
Posts: 2823
Joined: Tue Sep 08, 2009 12:07 pm
Location: Philadelphia, USA

Re: HLVD PIC 18F4520

Post by waltr » Mon Aug 11, 2014 11:15 am

This can be done in many ways on any PIC.
1- pollin loop works very well, is simple and de-bouncing can be built into the code.
2- Use the IOC feature of PortB.
To learn more look up and study the Microchip App notes.

Post Reply