cancel
Showing results for 
Search instead for 
Did you mean: 

pc8 problem on stm32f4

xtian
Associate II
Posted on February 14, 2013 at 01:33

i failed in portc0 as input... as it has a output voltage of 2++ so i dont want to play tug of war with that voltage as I don't want to cause any damage so instead of pc0-pc7 i have used pc1-pc8

anyweyz instead i tried pc8 now heres another trivia

my code is

Data = 255 - (GPIOC ->IDR>>1 & 0x00FF) ;

so in my portc.1-portc.8 heres my input ->00111111

I expect my data to be 3 but what comes out is 131 so there's an excess 128

when i try portc.1-portc.8 heres my input ->00111110

I expect my data to be 131 but what comes out is 3 so there's a missing 128

when i try portc.1-portc.8 heres my input ->11111111

I expect my data to be 0 but what comes out is 128 so there's an excess 128

my portc.8 is being inverted in nature.. is there something wrong with what i did?

0 REPLIES 0