The file iodefine.h which is generated by CS+ defines bits in peripheral I/O as allocated to bit fields from the lowest-order bit by default. Designating the -Xbit_order=left option causes access to bits other than those intended, since it changes the arrangement to being from the highest-order bit.
- Designate the -Xbit_order=right option.
If you need to designate the -Xbit_order=left option, enclose the code within iodefine.h between #pragma bit_order right and #pragma bit_order.
- In access to bits in registers of peripheral I/O after including iodefine.h, ensure that access is to the intended bits through either of the following methods.
|C Compiler Package for RH850 Family|