Pic16f1826


Closed Thread
Results 1 to 8 of 8

Thread: Pic16f1826

  1. #1
    Join Date
    Feb 2006
    Posts
    3

    Default 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

  2. #2
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    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
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  3. #3
    Join Date
    Feb 2006
    Posts
    3


    Did you find this post helpful? Yes | No

    Default 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!

  4. #4
    Join Date
    Mar 2005
    Location
    CROATIA
    Posts
    38


    Did you find this post helpful? Yes | No

    Default 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

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,598


    Did you find this post helpful? Yes | No

    Default 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

  6. #6
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,598


    Did you find this post helpful? Yes | No

    Default 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

  7. #7
    Join Date
    Mar 2005
    Location
    CROATIA
    Posts
    38


    Did you find this post helpful? Yes | No

    Default 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

  8. #8
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    2,598


    Did you find this post helpful? Yes | No

    Default 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

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts