Technical information

CSI to SPI Peripheral Communication in V850ES Microcontrollers
#define LED_PAT_BLANK 0xFF
#define LED_PAT_DP 0x7F
#define LED_PAT_DASH 0xBF
#define LED_PAT_ULINE 0xF7
#define LED_PAT_OLINE 0xFE
#define LED_PAT_EQUAL 0xB7
/*********************************************************************/
/* Export functions */
/*********************************************************************/
extern void led_init(void); /* init ports for
LED output */
extern void led_out_right(unsigned char val); /* output value to right LED
*/
extern void led_out_left(unsigned char val); /* output value to left LED
*/
extern void led_dig_right(unsigned char num); /* display number in right
LED */
extern void led_dig_left(unsigned char num); /* display number in left LED
*/
extern void led_dig(unsigned char num); /* display number as
hex */
extern void led_dig_bcd(unsigned char bcdnum); /* display number as BCD
*/
extern void led_dp_left(unsigned char on); /* turn on or off left
DP */
extern void led_dp_right(unsigned char on); /* turn on or off right
DP */
#endif /* _LED_KJ1_H */
4.1.16 Led_vkj1.c
/* led_vkj1.c - routines for LED */
/* for M-V850ES-KJ1 CPU board on M-Station base board */
/* Version: 1.1 05-08-2006 */
/* Version: 1.2 06-08-2006 added dp routines */
/* PDL8-PDL15 = output to right digit (LED2) */
/* PDH0-PDH7 = output to left digit (LED1) */
/* To connect ports to LEDs on M-Station 1.1, make the
following jumper connections between ROW1 and ROW2.
To connect ports to LEDs on M-Station 2, make sure
the default SBxx connections are inserted.
Port LED M-Station 1.1 M-Station 2.2
---- --- ------------- -------------
PDL8 2-A R1.25 - R2.25 SB27
PDL9 2-B R1.26 - R2.26 SB28
PDL10 2-C R1.27 - R2.27 SB29
PDL11 2-D R1.28 - R2.28 SB30
PDL12 2-E R1.29 - R2.29 SB31
PDL13 2-F R1.30 - R2.30 SB32
PDL14 2-G R1.31 - R2.31 SB33
PDL15 2-DP R1.32 - R2.32 SB34
74