-
Pic16f1826
Anyone try to program this chip with MicroCode plus and MPASM? I am getting error messages saying unknown processor and can't find pic16f1826.inc and a bunch more error messages. The pic16f1826 shows up in the microcode window and the processor is supported according to the PBP web site? I'm using PBP 2.6 and MPASM 8.5 everything works with PIC16F88 any ideas. I'm pretty simple so go easy on me. thanks
-
1st you need to modify the 16F1826 & 1827.bas files like shown here: http://melabs.com/support/pbpissues.htm
Here's a thread showing a few more edits you may need also: http://www.picbasic.co.uk/forum/show...4227#post84227
-
Thank You
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!
-
Re: Thank You
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 :)
-
Re: Thank You
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
-
Re: Thank You
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
-
Re: Thank You
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
-
Re: Thank You
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