P2 RTC Add-on Board
celtic3
Posts: 16
I have hooked up the P2 RTC Add-on Board on P40 thru P47 and it will not work. The RTCBASE = 40 is set so why will it work on lower pins (P0 thru P39) but not above (P40 thru 47).
By not work I mean it locks up the Prop2 when it gets to spin2 setup_64013RTC() method.
Comments
Source code? And what add-on board? Some links maybe helpful.
evanh Thats the add on board "P2 RTC add - on Board" using the provided code on Parallax site.
https://www.parallax.com/product/p2-rtc-add-on-board/
'' ================================================================================================= '' '' File....... 64013_RTC_Driver.spin2 '' Purpose.... Low level driver object for Parallax RTC Add-on #64013 '' '' Author..... Michael Mulholland '' -- based on code shared by Jon "JonnyMac" McPhalen '' '' E-mail..... support@parallax.com '' Started.... '' Updated.... 30 NOV 2020 '' '' =================================================================================================
I think it has to do with those pins not the code, acts like it dosen't see the pins.
Thank you.
I've had a look now and don't see any
setup_64013RTC()
method.sorry that is the setup method in main code , but as i said it is just the RTCbase = 40 that creates the problem. Any other pin lower than that is fine.
Has some indenting has gone awry in that code snippet? Maybe your using a different code editor to the one Parallax published the code under?
For example, after : if !rtc.start, the next line "lcd.drawString..." seems like it should be indented ?
.. could you attach the code archive exactly as you are using it? That would make it quicker to help, if we can see the details.
Do pins 40 thru 47 have limitations on how they are accessed, or should they work with pinr pinw pint ect, because I have nothing assigned to them that would interfere.
Further
I loaded and ran the follwing code by itself..................
pins 40 thru 47 with no result
pins 0 thru 39 with good result (sound)
so again...
Do pins 40 thru 47 have limitations on how they are accessed, or should they work with pinr pinw pint ect,
Q: Are you using the P2 with 32M RAM on it? If that's the case, you need to use a group in the lower 32 IO pins. A friend of mine just ran into this when he accidently purchased Edge modules with RAM.
Thank you Jon
Yes i am using the 32M
Does that interfere with the upper pins because they use that for communication addressing?
Yes, it does. My friend ran into this when he accidentally plugged the RAM-enabled Edge into one of his products. I think the lower 40 pins are available for general-purpose use. Move your RTC to the P32-P39 group and see if that works.
You can download the schematic from:
-- https://www.parallax.com/package/p2-edge-module-with-32mb-ram-schematic/
It shows on page 2 that pins P40..P55 are not available on the Edge that has 32M of RAM added.
The P40 through P57 just don't exist as I/O on the EC-32MB. They're connected to the RAM chips and nothing else. 16 data bus pins at 40..55 could in theory be used while the RAM is not selected, but if you had the EDGE in something like the big breadboard breakout, the long floating traces would destroy the signal integrity.