Pic16f1826


Closed Thread
Results 1 to 8 of 8

Thread: Pic16f1826

Hybrid View

  1. #1
    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

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    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

  3. #3
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    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

  4. #4
    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

  5. #5
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    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