Skip to main content
Rigoles
Visitor II
Nov 13, 2018 8:11 PM UTC
Question

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

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.

    This topic has been closed for replies.