Methods to use P30, P31 after boot
T Chap
Posts: 4,223
Is there a method already posted somewhere such that if you want to use either P30, P31 as inputs after boot, so that even if the devices are outputting during programming(which would affect programming), the device(s) are muted until after boot?
There are no pins to be used as relay or digital switches. The only idea I have is to use the pins 30,31 to affect a latch or switch to route the other devices to the pins.
Thanks
Post Edited (TChapman) : 12/4/2008 8:20:56 PM GMT
There are no pins to be used as relay or digital switches. The only idea I have is to use the pins 30,31 to affect a latch or switch to route the other devices to the pins.
Thanks
Post Edited (TChapman) : 12/4/2008 8:20:56 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
What would happen when you do a write to $0004, performing a reset. how would that inform the devices attached to the prop that it's been reset?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
When the bootprocess has finished P30 adn P31 are general IO-Pins like ANY other IO-PIN
f.e. you can use them as a serial connection to a PC-Terminal-software
best regards
Stefan
The problem here may be if there is a software reset for some reason where you would also want the external hardware device to get out of the way. Is that what you are getting at Baggers?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, uOLED-IOC, eProto for SunSPOT, BitScope
www.tdswieter.com
eg, an example, you have a program that loads other stuff, but then you need the initial program to run again by performing a reset. but you're external devices are currently listening or writing to those pins.
does that reset just reload the ram from eeprom, or does it check comms first?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
I believe (though haven't tested it myself) that the RESn pin actually goes low as well (so an outside device can tell if a reset occurred if it were monitoring that pin). This happens·if, and only if, the BOEn line is held low.· When BOEn is low, RESn becomes a weak output·of Vdd through 5 K ohms.·· See page 15, BOEn and RESn description, in the manual.
I'm unable to test that myself at the moment... anyone willing to take the time to do so and report here?
Exactly, Timothy, that's what I was getting at.· Thanks.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
Post Edited (Jeff Martin (Parallax)) : 12/6/2008 2:48:30 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--Jeff Martin
· Sr. Software Engineer
· Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://www.propgfx.co.uk/forum/·home of the PropGFX Lite
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
http://forums.parallax.com/showthread.php?p=650217
meow, i have my own topic now? (sorta)
I like that idea, I will probably try to lose the pic(or other micro) and substitute a latch which gets set by an AND gate fed by two Prop pins. On reset/boot/program, the reset pin resets the latch(hopefully in time for data to flow on the programming pins), when the programming is done or reboot finished, the two Prop pins set the latch and then are free do whatever else they want.