Download CodeWarrior for Microcontrollers V10 Processor Expert User Manual
Transcript
Processor Expert User Manual Application Design • PWM : In contrast to the PPG components, it is possible for PWM components to share the selected timer, since they do not have the SetPeriod method. More information about this component can be found in chapter Timers • WatchDog : When the Watchdog component is added to the project, it is automatically enabled. The enabling code is placed in the CPU initialization code. Note: Watchdog is enabled by a write to the configuration register. This register can be written only once after CPU reset. Since the register also contains other bits, which are written during the CPU initialization, the watchdog must be enabled when CPU is initialized. The property "CPU clock/speed selection" has no effect because the COP timer clock source is CGMXCLK. • AsynchroSerial : Timing setting 'values from list' enables to select various values denoted by changes of the prescaler most tightly coupled with UART. • SynchroMaster: If a mode fault occurs, the component is disabled at the beginning of the RecvChar method. • SynchroSlave : When Clock edge property = "falling edge", Shift clock idle polarity property = "Low" or Clock edge property = "rising edge" and Shift clock idle polarity property = "High", the SS pin of the slave SPI module must be set to logic 1 between bytes. The falling edge of SS indicates the beginning of the transmission. This causes the SPI to leave its idle state and begin driving the MISO pin with the MSB of its data. Once the transmission begins, no new data is allowed into the shift register from the data register. Therefore, the slave data register must be loaded with the desired transmit data before the falling edge of SS. • BitIO, BitsIO, ByteIO, Byte2IO, Byte3IO, Byte4IO: The GetVal and GetDir methods are always implemented as macros. Optimization for property (BitIO, BitsIO) doesn't influence the generated code. • ADC: Clock input of A/D clock generator cannot be changed in runtime. A conversion time in the 'Conversion time' dialog box is calculated for the worst case. • KBI: Only one KBI component can be used to handle one peripheral in PE project. • For details on sharing and usage of the high-level timer components please see the chapter 3.4.4.1 RS08 Timers Usage and Sharing. 3.4.4.1. RS08 Timers Usage and Sharing RS08 microcontrollers provide two main groups of timer devices. Simple Timer Peripherals These devices are simple counters that do not contain multiple individually configurable channels and usually do not allow to control any pins. These devices cannot be shared (i.e. used by multiple components). The following devices are members of this group on RS08: RTI, MTIM These devices are usually listed in Processor Expert under their original names without any extensions. These devices can be used by the TimerOut component. The MTIM peripheral can additionally be used in event counter components (EventCntr8,16,32). All peripherals from this group are also supported by the Peripheral Initialization Components (for details please see the chapter 3.2.1.1 Component Categories). - 69 -