naseeam
asked on
How to configure Digital Ouput in Renesas RH850/FIL Micrcontroller ?
I need to configure pin AP0_14 for digital output. To achieve this I need to write 0 to bit 14 of 16-bit Port Mode Register.
The physical address of this register is: 0xFFC103C8
What should be the exact statement to write to this register using the physical address ?
Renesas-RH850FIL.pdf
The physical address of this register is: 0xFFC103C8
What should be the exact statement to write to this register using the physical address ?
Renesas-RH850FIL.pdf
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
correction:
Sara
*pus = (*pus & 0x8000) | (bits0_14 & 0x7FFF);
Sara
ASKER
This is embedded software application.
Don't I need volatile keyword ?
Don't I need volatile keyword ?
volatile makes that in a multi-threaded application each thread doesn't make optimization on a variable, since it could be changed by another thread. for example in a loop the variable was checked in the loop condition even if there was no change in the loop body. 'embedded' software is realtime and single-threaded as far as i know. so the volatile shouldn't make a difference. but it also may not harm (and perhaps my knowledge of 'embedded' systems is not up-to-date).
Sara
Sara
ASKER