FUJITSU


MB90390 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

  • ADC:
    This application uses the A/D-Converter macro of the MB90390. The programm scans the all analog inputs AN0 to AN7 in the stop mode. After scaning all the inputs it starts from the begining. Each time one channel is converted the value is written to an array. Channel 0 (AN0=Pin39) is displayed on the LED-port PDR0
  • 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-120-390) The lower nibble of received data of CAN1 (basic Can) will appear at Port P04..P07 (UserLEDs D5-D8 of Eva-Board Flash-Can-120-390) If CAN0 and CAN1 are connected together at the Flash-CAN-120-390 Eva-Board, the 4-bit-countervalue is visible at LEDs D1..D4 / D5..D8
  • extINT:
    All external Interrupt-Pins INT0 .. INT7 will be enabled. A falling edge on INTx will be set PDR0_P0x in order to switch on the LEDx of the Flash-CAN-64P Board e.g. falling edge on INT3 will result in LED D3 will light, all other LEDs will be cleared. Because MB90390 has only one Interrupt-Vector used by all external IRQs, also only one IRQ-level can be defined for all external IRQs. This means, the user has to manage the priorities by software-structure.
  • I2C:
    The I2C-Interface of the MB90390-Series is used to write and read data from an external EEPROM 24C16. In the first part three bytes (65,66,76 = 'A','B','C') are written to memory address 0..2 Next step is to read out EEPROM starting at address 0. The Data are stored in an array result, that can be observed by the emulator. Finally a small dispatcher is used to allow communication with the UART: Datatransferrate is 9600Baud at 16MHz By pressing "w" up to 16 characters can be stored to the EPROM. With "carriage return" the input can be finished. By pressing "r" all 16 stored bytes will be read out. No interrupts are used.
  • ICU:
    The Input-Capture-Unit01 is used for time-measurement on Input Port IN0 (Pin 93). It will capture the value of FreeRunningTimer0 at each rising edge on IN0. The counter-difference between first and second capture will be used to calculate the passed time in 10 millisecond steps (based on 5MHz crystal). The result will be visible at Port P04-P07 (LED4 - LED7). An counter-overflow will not be recognized, in order to keep that example as simple as possible.
  • IOPort:
    IOPort-project simply counts down an internal variable and outputs the counter value to port0. No interrupts are used.
  • 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). Free-Running-Timer 0 belongs to OCU01 and OCU23, Free-Running-Timer 1 belongs to OCU45 and OCU67. The program uses all four OCUs with two compare registers each. For each compare register a compare output pin is assigned (OUT0..7) which can be enabled. The Free-Running-Timers can be clocked with the machine-clock devided by 1, 2, 4, 8, 16,32, 64 or 128. In this demo both Timer1 are clocked with the machine-clock devided by 128. Because OUT3 and OUT5-7 are belongs to Port0, where the LEDs of the demo-kit are connected, the activity of can be seen on the LEDs.
  • PPG8:
    All PPG-modules are used as 8Bit-PPGs: PPG0, PPG1, PPG2, PPG3, PPG4, PPG5, PPG6, PPG7, PPG8, PPG9, PPGA and PPGB. PPG1 .. PPGB have fixed PWM-output, that can be measured on their outputs by an oscilloscope. PPG0 is used to produce a triangel-ramp. If the output (pin 26) is connected to an LED (e.g. pin 100) this ramp can be seen as a dimming of the LED No interrupts are used.
  • PPG16:
    All PPG-modules are used as 16Bit-PPGs: PPG01, PPG23, PPG45, PPG67, PPG89 and PPGAB. PPG23 .. PPGAB have fixed PWM-output, that can be measured on their outputs by an oscilloscope. PPG01 is used to produce a triangel-ramp. If the output (pin 26) is connected to an LED (e.g. pin 100) this ramp can be seen as a dimming of the LED No interrupts are used.
  • Reload:
    Reload-project uses interrupts of reload-timer0 and reload-timer1 to toggle LEDs.
  • Stepper:
    This example will control a steppermotor. The motor will move clockwise slow, and returns fast. By a #define it can be selected, which motor wants to be moved.
  • Sound:
    This is a simpel demo project to initialize and use the sound generator.
  • Sound_Music:
    This project shows the usage of the sound-generator for playing some little music. UART0: It is a test application to send an welcome string to the serial output UART0 and echos every receiving character. Baud rate 9600 at 20MHz, no parity, 1 stop bit and a data length of 8 bit. No interrupts are used.
  • UART0 with Reload Timer 0:
    It is a test application to send an welcome string to the serial output UART0 and echos every receiving character. Baud rate 9600 @ 16MHz using Reload Timer 0, no parity, 1 stop bit and a data length of 8 bit. No interrupts are used.
  • UART1:
    It is a test application to send an welcome string to the serial output UART1 and echos every receiving character. Baud rate 9600 at 20MHz, no parity, 1 stop bit and a data length of 8 bit. No interrupts are used.
  • UART2:
    It is a test application to send an welcome string to the serial output UART2 and echos every receiving character. Baud rate 9600 at 20MHz, no parity, 1 stop bit and a data length of 8 bit. No interrupts are used.
  • UART3_asnc:
    It is a test application to send an welcome string to the serial output UART3 and echos every receiving character. Baud rate 9600 at 20MHz, no parity, 1 stop bit and a data length of 8 bit. No interrupts are used.
  • UART3_INT:
    It is a test application to send an welcome string to the serial output UART3 and echos every receiving character. Baud rate 9600 @ 16MHz, no parity, 1 stop it and a data length of 8 bit. Receive interrupt is used. Within the ISR, the received character is replied.
  • Watch_DOG:
    When starting a "LED-line" is built up. When all LEDs are on, then Watch-Dog is started. The application will toggle LED D0 (P00). Blink-time (delay) will be increased automatically. If "delay" is larger than the Watch-Dog time, then the watchdog-unit will restart the microcontroller.
  • History of the MB90390:
Date Revision Description
11.09.06 V01R09 Updated Sample package released
20.01.05 V01R08 sample package released
07.12.04 - Example stepper updated
16.11.04 V01R07 sample package released
01.06.04 V10 Example UART0 with Reload Timer 0
06.05.04 V01R06 sample package released
16.04.04 1.4 Template: start-up updated
02.04.04 V01R05 sample package released
01.04.04 1.3 new Header-File, Template updated
06.02.04 V01R04 sample package released
01.02.04 V1.1 wrong start-up file had disabled PLL
05.09.03 V01R03 sample package released
02.09.03 V1.2 new Header-File, Template updated
12.05.03 V01R02 sample package released
06.05.03 V1.00 Example UART3_INT added
30.01.03 - Example PPG16 updated
27.01.03 - new header files
20.11.02 V01R01 sample package released
12.11.02 V01R00 Example package released
11.11.02 V1.10 Example Can updated
25.10.02 - disclaimer added to all source files
23.10.02 V1.00 Example LIN-Master
23.10.02 V1.01 Example LIN-Slave
23.07.02 - new Header-File, Template updated
16.04.02 V1.00 Example PPG8 added
08.04.02 V1.00 Example UART3_async added
26.03.02 V1.00 Example I2C added
26.03.02 V1.00 Example PPG16 added
26.03.02 V1.00 Example Sound_Music added
26.03.02 V1.00 Example Sound added
26.03.02 V1.00 Example Stepper added
26.03.02 V1.00 Example ADC added
26.03.02 V1.00 Example Can added
26.03.02 V1.00 Example extINT added
26.03.02 V1.00 Example ICU added
26.03.02 V1.00 Example IOPort added
26.03.02 V1.00 Example OCU added
26.03.02 V1.00 Example Reload added
26.03.02 V1.00 Example Template added
26.03.02 V1.00 Example UART0 added
26.03.02 V1.00 Example UART1 added
26.03.02 V1.00 Example UART2 added
26.03.02 V1.00 Example Watch_DOG added

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 MB90390 Series V01R09 (1100 KB, 11. September 2006)