EasyManua.ls Logo

Freescale Semiconductor MPC5604B - Operations; User Interface; Testing

Default Icon
150 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
4.2.3.
Operations
Some common operations are defined, using SPI and PWM, (see code for details),
- config_HS: Enabling/disabling a high-side switch,
- write_HS: Sets/clears a high-side switch output,
- conf_PWM_HS: Starts a 300Hz PWM applied on the high-side switches.
- duty_cycle_PWM_HS: Sets the duty cycle of an output PWM.
- read_fault: a function that updates the _MC33984_STATUS structures flag registers.
4.2.4.
User interface
An UART terminal user interface was developed, allowing the use of some commands to drive
the chip directly from a computer.
4.2.5.
Testing
Most of this drivers functionalities were tested. Firstly, Freescales SPIGen program was used
with an SPI Dongle to test read and write actions on the devices registers. Then the developed
terminal application was used to test basic switching operations.
There was a problem on PWM duty cycle: the microcontroller used 5V TTL logic, and the high-
side switch used 5V CMOS logic. Therefore the duty cycle at the drain of the chip was higher than
the duty cycle at the gate. A pull-up resistor with an adequate value or a level-shifter chip must
be used to output the correct pulse.
Current read and fault reading functionalities were not tested.
SPI driver was updated after the tests so it might need a few adjustments if it does not work as it
is.

Table of Contents

Other manuals for Freescale Semiconductor MPC5604B

Related product manuals