![Freescale Semiconductor MPC5604B Скачать руководство пользователя страница 129](http://html1.mh-extra.com/html/freescale-semiconductor/mpc5604b/mpc5604b_quick-start-manual_2330604129.webp)
Each peripheral is defined as a structure in this case it is ADC_tag, and then memory is mapped
following the offset mentioned in the reference manual. MCR’s offset is zero so it is directly
located at the beginning of the ADC_tag structure. It is defined as a union of a 32-bit register and
a total 32-bit bit-field made of different fields of the register. Therefore while writing the whole
register you need to use ADC.MCR.R but for accessing a specific field you’ll need to use
ADC.MCR.B.CTUEN for instance. The compiler will take care of masking and shifting to only alter
the field in question to only modify it (but if the optimisation level is too high, unpredicted
behaviour might occur with these fields).
At the end of the mapping file, a volatile variable based on each peripheral structure is mapped
to the memory and ready to be used by the main program:
Now we will show how debugging works. About the microcontroller programming on the
starting kit: if you want to download to the flash using USB, the board must be powered up from
the USB and you can program it directly using the embedded programmer. If you have to use the
external source’s voltage regulator (or SBC) you’ll have to program it using a Multilink JTAG
interface (make sure you connect it on the right direction).
For debugging, click on debug, when you ensure that your device is connected and its driver is
installed.
Содержание MPC5604B
Страница 1: ...LAAS CNRS Quick Start to MPC5604B Embedded Development Sahin Serdar 21 06 2013...
Страница 31: ...Figure 33 INTC SW HW mode comparison Freescale Tutorial...
Страница 87: ......
Страница 132: ......
Страница 133: ...127 Appendix 2 Pad Configurations...
Страница 134: ......
Страница 135: ......
Страница 136: ......
Страница 137: ......
Страница 138: ......
Страница 139: ......
Страница 140: ......
Страница 141: ...Appendix 3 Peripheral input pin selection...
Страница 142: ......
Страница 143: ...137 Appendix 4 Interrupt Vector Table...
Страница 144: ......
Страница 145: ......
Страница 146: ......
Страница 147: ......
Страница 148: ...Appendix 5 I C Baud Rate Prescaler Values...
Страница 149: ......
Страница 150: ......