MB90540 Series
SMPL16
DESCRIPTION
To install the Software Sample Files please download the compressed self-extracting file. The Standard Installation Target Directory is:
C:\Softune\sample\smpl16
FEATURES
- 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. - ADC_EIIOS_RLT
This examples shows A/D-converter with EIIOS and ReloadTimer. With each ReloadTimer-underflow the A/D-channels AN0 .. AN6 are sampled. The A/D-results are stored to RAM-buffer by EIIOS and are send out via UART1 - 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. - ADC_LED
The project ADC_LED will do a simple A/D-conversion in stop mode. Start- and End-channel can be defined. The result will displayed on Port 4, the LED-port of the Flash-CAN-100 evaluation-kit note: do not use Bitoperations for ADCS0 and ADCR1. - ADC_UART
The UART_ADC example project will convert continously the ADC channel 0..2 The Channle-number and value will be send via UART1 (9600Baud @ 16MHz) No interrupt is used. Boot1.1 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. - Can
CAN0 and CAN1 will send out a counter-value. The lower nibble of the received data of CAN0 (basic Can) will appear at Port P00..P03 (UserLEDs D1-D4 of Eva-Board Flash-Can-100P) The lower nibble of received data of CAN1 (basic Can) will appear at Port P04..P07 (UserLEDs D5-D8 of Eva-Board Flash-Can-100P) If CAN0 and CAN1 are connected together at the Flash-CAN100P Eva-Board, the 4-bit-countervalue is visible at LEDs D1..D4 / D5..D8 CAN0 Buffer #1: basic CAN ("receive buffer") CAN0 Buffer #6: full CAN ("transmit buffer") => sends with ID#1 CAN1 Buffer #1: basic CAN ("receive buffer") CAN1 Buffer #6: full CAN ("transmit buffer") => sends with ID#2 - 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 - extBUS540, extBUS540_Accemic:
This example shows how to use the external Bus interface of the MB90F543. The main settings for the bus interface have to done in the Start.asm at section 4.8 external Bus interface. The program simple uses different software-methods to write or read data to/from the bus. Please refer also to the application-note "an-BusInterface-Vx-x.pdf" - extBUS540HAK:
same as extBUS540 but .. in this special example, the Hold-function is enabled, if HAK (Pin 14) = low => MCU runs, Businterface is active if HAK (Pin 14) = high => MCU stops, Businterface will go to High-Z. For testpurposes, the LED1 of the Flash-CAN100 Evaluation board blinks while the MCU is NOT holded (HAK = low) - extINT_StopMode:
This project will explain the functionality of external Interrupts and the Stop-Mode (for more details see readme.txt in project) - 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
This example demonstrates the 16-bit mode of the PPG. The PPG0 output (Pin 61) can be connected to Port 4 (LED0, Pin18) in order to see aktivity of 16bit PPG01 in form of dimming. The Reload-timer0 IRQ is used to modify PPG01. - 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. - subclock
The subclock-project shows how to switch from MAIN clock into subclock mode. First an internal variable is count down and output the counter value to port4 (MAIN CLOCK mode). Afterwards the mcu is switched to SUBCLOCK mode. And an internal variable is count down and output the counter value to port4. Port 4 is connected to the LED on FLASH-CAN-100P-M06 Evaluation board. The Run mode (MAIN/SUB CLOCK) can be easy checked by watching the LEDs. No interrupts are used. 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. - Watchtimer
Programming Watch Timer in Interrupt mode.Toggle port P42. - Watch_DOG
This sample shows how to intialize the Watch dog of the MB90540 series. The program simply activates the Watch dog and sets the interval time to around 0.5s. If the dummy loop needs more execution time than the interval the Watch dog causes an reset and starts the application again. If the Watch dog is activated ones their is no possibility to stop the Watch dog. - History of the MB90540:
| Date | Revision | Description |
| 11.09.06 | V01R08 | Updated Sample package released |
| 16.11.04 | V01R07 | sample package released |
| 15.07.04 | Example ADC_UART added | |
| 06.05.04 | V01R06 | sample package released |
| 06.05.04 | - | Example subclock added |
| 16.04.04 | 1.3 | Template: start-up updated |
| 07.04.04 | 1.1 | Example Boot Loader bug fix |
| 02.04.04 | 1.2 | example AdcI2OS updated |
| 02.04.04 | 1.2 | example AdcIRQ updated |
| 05.09.03 | V01R05 | sample package released |
| 02.09.03 | - | example ADC updated |
| 02.09.03 | - | example ADC_EIIOS_RLT updated |
| 02.09.03 | - | example ADC_I_R updated |
| 02.09.03 | - | example ADC_LED updated |
| 02.09.03 | - | example AdcI2OS updated |
| 02.09.03 | - | example AdcIRQ updated |
| 02.09.03 | 1.2 | new Header-File, Template updated |
| 12.05.03 | V01R04 | Example package released |
| 28.03.03 | - | example ADC_EIIOS_RLT added |
| 30.01.03 | - | PPG16 example updated |
| 29.01.03 | - | new Header-File, Template updated |
| 20.12.02 | - | add extBUS540HAK project |
| 12.11.02 | V01R03 | Example package released |
| 06.11.02 | - | CANread, CANwrite replaced by example CAN |
| 25.10.02 | - | disclaimer added to all source files |
| 23.07.02 | - | AdcIRQ : Read-Modify-Write removed for ADCS0 |
| 23.07.02 | - | AdcI2OS: Read-Modify-Write removed for ADCS0 |
| 23.07.02 | - | new Header-File, Template updated |
| 28.06.02 | - | add extINT_StopMode project |
| 20.06.02 | - | add extBUS540, extBUS540_Accemic project |
| 15.04.02 | - | add ADC_LED project |
| 29.06.01 | - | add Watch_DOG project |
| 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 |
DOWNLOAD
Note: Netscape Navigator 4.xx does not allow direct execution of ".exe" files. Saving them to a temporary folder and executing them there is recommended.
EXESelf-extracting Sample Files for MB90540 Series V01R08 (1470 KB, 11. September 2006)
EXESample Files for MB90540 Series Flash Security (168 KB, 17. August 2005 )
