Some Simple Questions From a Newb
willthiswork89
Posts: 359
H guys im new hopefully ill get a good welcome, my question is ive been reading the whats a miucrocontroller and i have a few questions that dont get answered in the book fully. the RCTIME wiring diagram doesnt connect with me, because is goes
································ Wire
P4->Resistor->104 .01 u|Potentiometer->··| ...... what i dont get is how does this work when the wire is just running to the place that the potentiometer is connected to anyways?
also
with the DIRH and OUTH how does it know whats what like... i have the Clock Display thingy like in alarm clocks and its connected by resistors through p15-p8 and my question is when i do
outh = %10101010 how does it know that it needs to use THOSE 8 ? ho does it know whats connected and how does it know in which order to complete this? like if i move these all down one (p14-p7) would it still work the same? thanks for the time guys!
································ Wire
P4->Resistor->104 .01 u|Potentiometer->··| ...... what i dont get is how does this work when the wire is just running to the place that the potentiometer is connected to anyways?
also
with the DIRH and OUTH how does it know whats what like... i have the Clock Display thingy like in alarm clocks and its connected by resistors through p15-p8 and my question is when i do
outh = %10101010 how does it know that it needs to use THOSE 8 ? ho does it know whats connected and how does it know in which order to complete this? like if i move these all down one (p14-p7) would it still work the same? thanks for the time guys!
Comments
· With OUTH/OUTL, you are setting the states of the outputs in question.
· OUTH is always and only P8-P15 and OUTL is always and only P0-P7, those are internal hardware/firmware associations.
· RCTIME works by going through, I believe, two periods during RCTIME execution: a charge time and a discharge time.
· Post edit -- Of course, you don't have to deal with the OUTputs a byte at a time (as in OUTL/OUTH) as you can set each independently with the HIGH and LOW commands.· HIGH 7 makes output P7 HI and LOW 7 makes output P7 LO.
Post Edited (PJ Allen) : 6/19/2006 12:54:32 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
http://www.parallax.com/html_pages/edu/curriculum/sic_curriculum.asp
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com