I have 12F508 which is generating 2 frequencies with different duty cycle. I have two inputs on pins GP4 and GP5. For the different configurations on inputs, I must output different frequency on the output. So I need a code how to set up interrupt routine on pin change (in this routine I will read the inputs and determine which frequency to generate).
Thank you !
Best regards,
Ivailo
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Sun Feb 28, 2010 12:38 am
Quote:
So I need a code how to set up interrupt routine on pin change (in this
routine I will read the inputs and determine which frequency to generate).
The 12F508 doesn't have any interrupts. Download the data sheet
and search for the word "interrupt". You won't find it.
http://ww1.microchip.com/downloads/en/DeviceDoc/41236E.pdf
So if you want to check those pins for user input, you will have
to poll them (i.e., read them at a periodic interval).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum