beautypg.com

Maxim Integrated DS4830A Optical Microcontroller User Manual

Page 9

background image

DS4830A User’s Guide

9

23.7.2 – Unconditional Jumps ..................................................................................................................................... 197

23.7.3 – Conditional Jumps ......................................................................................................................................... 198

23.7.4 – Calling Subroutines ........................................................................................................................................ 198

23.7.5 – Looping Operations........................................................................................................................................ 198

23.7.6 – Conditional Returns ....................................................................................................................................... 199

23.8 – Handling Interrupts ............................................................................................................................................... 199

23.8.1 – Conditional Return from Interrupt .................................................................................................................. 200

23.9 – Accessing the Stack ............................................................................................................................................. 200

23.10 – Accessing Data Memory .................................................................................................................................... 201

SECTION 24 – INSTRUCTION SET .................................................................................................................................. 203

SECTION 25 – UTILITY ROM ............................................................................................................................................ 231

25.1 – Overview ............................................................................................................................................................... 231

25.2 – In-Application Programming Functions ................................................................................................................ 232

25.2.1 – UROM_flashWrite .......................................................................................................................................... 232

25.2.2 – UROM_flashErasePage ................................................................................................................................ 232

25.3 – Data Transfer Functions ....................................................................................................................................... 233

25.3.1 – UROM_moveDP0 .......................................................................................................................................... 233

25.3.2 – UROM_moveDP0inc...................................................................................................................................... 233

25.3.3 – UROM_moveDP0dec .................................................................................................................................... 234

25.3.4 – UROM_moveDP1 .......................................................................................................................................... 234

25.3.5 – UROM_moveDP1inc...................................................................................................................................... 234

25.3.6 – UROM_moveDP1dec .................................................................................................................................... 235

25.3.7 – UROM_moveBP ............................................................................................................................................ 235

25.3.8 – UROM_moveBPinc ........................................................................................................................................ 235

25.3.9 – UROM_moveBPdec....................................................................................................................................... 236

25.3.10 – UROM_copyBuffer ....................................................................................................................................... 236

25.4 Special Functions .................................................................................................................................................... 237

25.4. 1 – UROM_copyWord ......................................................................................................................................... 237

25.4. 2 – Software Reset ............................................................................................................................................. 237

25.5 – Utility ROM Examples ........................................................................................................................................... 238

25.5.1 – Reading Constant Word Data from Flash ...................................................................................................... 238

25.5.2 – Reading Constant Byte Data from Flash (Indirect Function Call) .................................................................. 238

SECTION 26 – MISCELLANEOUS .................................................................................................................................... 239

26.1 – Overview ............................................................................................................................................................... 239

26.2 – CRC8 .................................................................................................................................................................... 239

26.2.1 – CRC Data In (CRC8IN) .................................................................................................................................. 239

26.2.2 – CRC Data Out (CRC8OUT) ........................................................................................................................... 239

26.2.3 – Example ......................................................................................................................................................... 239

26.3 – Software Interrupts ............................................................................................................................................... 239

26.3.1 – User Interrupt Register (USER_INT) ............................................................................................................. 240

26.4 – General-Purpose Registers .................................................................................................................................. 240

26.4.1 – General-Purpose Register ............................................................................................................................. 240