2013-02-13 12:40 AM
Hi guys,
last week i am still able to use my pc0 as input, now he is rebelling it is configured as input but it has an output of 2.25v I dont understand why2013-02-13 07:05 AM
last week i am still able to use my pc0 as input, now he is rebelling it is configured as input but it has an output of 2.25v I dont understand why
From the information provided it's hard for me to understand too. Did you change some code, or burn it out? Isn't PC0 connected to the USB Power On, with an external 10K pull up?
2013-02-13 04:28 PM
2013-02-13 04:45 PM
Perhaps you have it wired up, or configured wrong. Can't help you there.
2013-02-13 04:58 PM
2013-02-13 05:16 PM
but this code is correct ryt?
DIOData = 255 - (GPIOC ->IDR>>1 & 0x00FF) ; if I want to capture ascii data from port c1 - c82013-02-13 05:49 PM
Doesn't look unreasonable, I might do this
DIOData = ((~GPIOC->IDR >> 1) & 0x00FF) ; // PB[1..8] You could do a printf(''%04X\n'', GPIOC->IDR); to confirm the data bits presenting.2013-02-13 09:48 PM
woooh. whats ~ for? invert?
2013-02-14 04:18 AM
What's
http://www.eskimo.com/~scs/cclass/int/sx4ab.html
?2013-02-14 10:08 PM
Thank you very much clive!