cancel
Showing results for 
Search instead for 
Did you mean: 

How do we access and modify the value of the PB_ODR for example ?

Rigoles
Associate

Hello everyone,

If I need to write a program in c language which prints me the value on a 7 segments display. In my program, in order to change the value that the Output Direction Register contains, do I simply do this ?:

PB_ODR=ox60;

(this hexadecimal value corresponds to the one on a 7 segments display)

Or should I use a pointer towards this register ? Or should I make a bit-wise operation with a mask ?

Thanks for helping me.

0 REPLIES 0