
 |
Template
This is a project template for the MB90540 Series.
It includes some basic settings for e.g. Linker, C-Compiler which must be checked and modified in detail, corresponding to the user application.
|

 |
ADCI2OS
This application uses the I2OS which automatically transfers A/D convertion result to memory.
Data conversion is performed in single mode.
This service achieves automatic data transfer between ADC conversion register and a memory buffer.
The Extended Intelligent I/O Service Descriptor Declaration is defined in (isd.h) file and the Descriptor Definition is defined in (isd.c) file.
|

 |
ADC
This application uses the ADC macro of the MB90543.
The programm scans the four analog inputs AN0 to AN3 in the single mode with 10-Bit resolution, sample time of 64 cycles and compare time of 352 cycles.
After scaning all the inputs it starts from the begining.
Each time one channel is converted the value is written to an array.
|

 |
ADC_I_R
see above ADC
The activation by Reload Timer 1 is selected.
The channels are scanned at 10 ms
|

 |
ADC_IRQ
The application uses the ADC of the MB90543 with interrupts.
The programm scans the four analog inputs AN0 to AN3 in the single mode with 10-Bit resolution, sample time of 64 cycles and compare time of 352 cycles.
After scaning all the inputs it starts from the begining.
Each time one channel is converted the value is written to an array.
|

 |
Boot1.0
This project contains a boot strap loader. It can be used to create application specific bootloaders.
This example use the UART interface to download the software to the internal Flash memory.
|

 |
CanRead
This is a CAN Read project for the MB90540 Series.
Both CAN are initialised.
Can0 writes data to the Bus. Can1 reads the data and puts the received datas to port4.
|

 |
CanWrite
This is a CAN Write project for the MB90540 Series.
This demo shows a simple write to CAN bus.
|

 |
Debug
This is a dummy project to start directly the Softune Workbench debugger, without using the project managment IDE.
The debug file name.abs to debug must be located in the \ABS folder.
Edit the path in the [member] entry in the debug.prj file to ensure that the correct .abs file is loaded into the emulator system.
|

 |
EIIOS_2x_UART
This is a demo project to explain the features of EIIOS. Two EIIOSs will be used parallel.
EIIOS-channel0 will use UART0 and Reloadtimer0
EIIOS-channel1 will use UART1 and Reloadtimer1
|

 |
IOPort
IOPort-project simply counts down an internal variable and outputs the counter value to port1.
No interrupts are used.
|

 |
Mas_Slav
It is a test application in which a communication between several MCUs is performed.
Baud rate 4800, no parity, 1 stop bit and a data length of 8 bit.
The master MCU works all the time in mode 3, the slave MCU changes between mode 2 and mode 3. Mode 3 for the slave is necessary to communicate with the master.
All slave MCUs which are still in mode 2 are ignoring the data on the bus, because to communicate in mode 2 it is necessary that D8 in the URD0-register is set to '1' all the time.
|

 |
OCU
To use the OCU it is necessary to initialize the OCU control and compare registers and the 16-Bit I/O Timer (free running timer).
The program uses all two OCUs with two compare registers each.
For each compare register a compare output pin is assigned (OUT0..3) which can be enabled.
By setting the CMOD bit in the OCU control register the corresponding output toggles upon a match with each of the two compare registers of the OCU.
By setting the MODE bit in the TCDT register, the counter value can be initialized by a match with compare register 0.
The match value is FF (8 bit).
The compare register 0 value is 7F. The max frequency amounts to 483 Hz.
|

 |
OCU_INT
To use the OCU it is necessary to initialize the OCU control and compare registers and the 16-Bit I/O Timer (free running timer).
The program uses all two OCUs with two compare registers each.
For each compare register a compare output pin is assigned (OUT0..3) which can be enabled.
By setting the CMOD bit in the OCU control register the corresponding output toggles upon a match with each of the two compare registers of the OCU.
By activating the corresponding interrupt bit in the OCU control register an interrupt request occurs at each match of the corresponding compare register.
In this interrupt handler the pulse width of the OCU signal can be new assigned to the compare register.
|

 |
PPG
Interrupt service routine of Reload-timer0 is used to modify PPG channel 1.
If you connect Pin 18 and 62 of MB90540 by using the FLASH-CAN2-100P board, PPG output is fed back to LED D1.
You can see D1 being dimmed.
|

 |
PPG16
Interrupt service routine of Reload-timer0 is used to modify PPG channel 1.
The PPG0 and PPG1 pins are connencted to the 16-bit output.
|

 |
Reload
Simple Demoproject using interrupts of reload-timer0 and reload-timer1 to toggle two LEDs.
|

 |
SIO
It is a test application to send data out of the SIO.
The used frequency is 31,25kHz in mode 0.
The transmission is start with the STRT flag and is stop when the BUSY flag change to stand by.
|

 |
SIO_IRQ
This sample shows how to initialize the SIO to use the interrupt function.
To use the interrupt the MODE bit have to be set to '1'.
The interrupt bit SIE is set to '1' too.
There are four serial I/O opertation status.
To use the interrupt it is necessary to perform the R/W standby mode.
Therefore, STRT is set to '1' and STOP to '0'.
|

 |
SIO_IRQ2
see SIO_RQ
|

 |
SPI
This project writes data and reads data from an EEPROM (SPI) device with the SIO on the MB90543.
The used SPI device is the NM25C20 from Fairchild.
To receive the data of the SPI device the SIO is sending a dummy out of the transmit register.
After finishing one operation some flags are cleared.
|

 |
SPI_IRQ
see above SPI
All this is performed by the interrupt of the SIO.
|

 |
UART_asyn
This project sends data between the two UARTs of the MB90543.
Both Uarts work in asynchron mode with 8bit datalength and 1 stop bit.
The sended data can be seen on the leds, were D8,D7 and D2 are the outputed data.
If these leds are switched off an error has occur.
The possible errors are overrun or framing error. Interrupts are used.
|

 |
UART_SPI
This application uses the Uart1 of the MB90543 to drive a SPI EEPROM.
The Uart is configured as a sychronouis device with a frequency of 62,5kHz, 8bit datalenght and no parity check.
Sychron clock is astablished inside the MCU by the Uart it self.
This demo application writes some data to specified addresses, reads the status of the EEPROM and read the data from a specific address.
|

 |
UART0
It is a test application to send an welcome string to the serial output UART0 and echos every receiving character.
Baud rate 9600, no parity, 1 stop bit and a data length of 8 bit.
No interrupts are used.
|

 |
UART0_IRQ
It is a test application to send an welcome string to the serial output and echos every receiving character.
Baud rate 9600, no parity, 1 stop bit and a data length of 8 bit.
All these is handled with interrupts of the UART0.
The interrupt prototyps can be found in the vector.c source file, including the interrupt priority.
|

 |
UART1
It is a test application to send an welcome string to the serial output UART1 and echos every receiving character.
Baud rate 9600, no parity, 1 stop bit and a data length of 8 bit.
No interrupts are used.
|

 |
UART1_IRQ
It is a test application to send an welcome string to the serial output and echos every receiving character.
Baud rate 9600, no parity, 1 stop bit and a data length of 8 bit.
All these is handled with interrupts of the UART1.
The interrupt prototyps can be found in the vector.c source file, including the interrupt priority.
|

 |
Watchti
Programming Watch Timer in Interrupt mode.Toggle port P42.
|

 |
History of the MB90540:
| Date | Revision | Description |
| 13.06.01 | V01R02 | Example Package released |
| 30.05.01 | - | Read-Modify-Write change for PPG-sample |
| 17.04.01 | - | OCU and OCU_INT example added |
| 10.04.01 | V01R01 | Example Package released |
| 10.04.01 | - | added example of two EIIOS running parallel |
| 28.03.01 | - | new header files copied into template prj |
| 31.01.01 | - | PPG16 Sample added |
| 08.08.00 | - | new header files copied to template prj |
| 15.06.00 | - | Edit ADCI2OS |
| 10.07.00 | V01R00 | Example Package released |
|