Technical information

CSI to SPI Peripheral Communication in V850ES Microcontrollers
st.b r11, PRCMD[r0]
st.b r11, PCC[r0]
nop
nop
nop
nop
nop
-- PLL start
set1 0, PLLCTL[r0]
-- PLL work
.if 1 -- fix bad code generated by Applilet
-- need to set r11 to some value before starting this loop!
-- Lock 200 us
movea 0x800, r0, r11
.endif
__CG_LOOP4:
nop
nop
nop
addi -1, r11, r11
cmp r0, r11
bnz __CG_LOOP4
set1 1, PLLCTL[r0]
-- enable interrupt
stsr 5, r11
andi 0x7f, r11, r11
ldsr r11, 5
-- pop
ld.w 0[sp], r11
ld.w 4[sp], r12
add 8, sp
--disable watchdog timer 2
mov 0x1f, r11
st.b r11, WDTM2[r0]
jmp [lp]
4.2.5 System_user.c
/*
*****************************************************************************
**
** This device driver was created by Applilet for the V850ES/FE2,
V850ES/FF2,V850ES/FG2
** and V850ES/FJ2 32-Bit Single-Chip Microcontrollers
**
** Copyright(C) NEC Electronics Corporation 2002-2004
** All rights reserved by NEC Electronics Corporation
**
** This program should be used on your own responsibility.
** NEC Electronics Corporation assumes no responsibility for any losses
incurred
** by customers or third parties arising from the use of this file.
**
86