Just wanted to thank everyone and -Bruce at rentron.com
All seems to work now just have to figure out how all the PWM's work together and try microchips ideas thanks again!
Just wanted to thank everyone and -Bruce at rentron.com
All seems to work now just have to figure out how all the PWM's work together and try microchips ideas thanks again!
Hi,
I'm trying to migrate from 16f628a to 16f1827, program is using 2 DT instant interrupt sources;(int=gsm (rb0) modem ring and on change coin receiver (rb4,5,6,7))
628 had only 4 on change pins, and now 1827 have more on change which now changed name to IOC, my question is
RB0 now share 2 interrupt INT and IOC, i read few time datasheet and didn't find some kind of mask to disable IOC on rb0 to live
INT do old job, which interrupt will fire rb0 if both interrupt wait action ? and how to mask/route IOC only to needed pins ?
is it maybe only way put all to IOC and in int-routine determining who fired int.... 2 interr. are more logic and easier way but if no joy.......
i think this is question for microchip forum, but here often answers have more sense![]()
Hi,
While I'm looking at the datasheet to see if I can help, did you make sure there are no analog features enabled on B0?
If you don't know, Darrel has made a neat tool to make sure all pins are digital. Details here:
http://www.picbasic.co.uk/forum/showthread.php?t=11100
Robert
Just throwing ideas out:
- REGISTER 12-1: APFCON0: ALTERNATE PIN FUNCTION CONTROL REGISTER 0 ... This register might be worth a look.
- 12.3.4 PORTB FUNCTIONS AND OUTPUT PRIORITIES ... Here you see what function will work in what priority.
Sorry, that's all I could find searching for RB0 in the datasheet.
Robert
Demon thx very much,
actually digging deeper in datasheet i found much about IOC portb mask (same moment i saw your post)
IOCBF IOCBN IOCBP make advanced masking for rising falling or disabling on pin,
so regarding this, i can disable IOC on INT pin this is optimal for me...
is the same pdf saved on desktop, but few hours ago this wasn't there![]()
like gold fish, newer know how small aquarium is....
regards
I used this datasheet from Microchip:
http://ww1.microchip.com/downloads/e...Doc/41391D.pdf
You can save it to desktop, or anywhere else you like on your hard drive.
I save all my datasheets in one folder.
Robert
Bookmarks