Renesas M16C Series User Manual page 345

16-bit single-chip microcomputer
Hide thumbs Also See for M16C Series:
Table of Contents

Advertisement

M30240 Group
• Example of USB Function Interrupt
C Language
ram1=USBIS1;
ram2=USBIS2;
ram2 &=0x1F;
USBIS1=ram1;
USBIS2=ram2;
Assembly Language:
mov.b USBIS1, ram1
mov.b USBIS2, ram2
and.b #1Fh, ram2
mov.b ram1, USBIS1
mov.b ram2, USBIS2
• Do not use Read Modify Write instructions on the following USB Control and Status registers:
• USB Endpoint 0 Control and Status (EP0CS)
• USB Endpoint x IN Control and Status (EPxICS)
• USB Endpoint x OUT Control and Status (EPxOCS)
Refer to Chapter 1, Section 1.5 for more information on these registers and how to modify their contents.
Rev.1.00 Sep 24, 2003 Page 327 of 360
/*Read from USB Interrupt Status register 1*/
/*Read from USB Interrupt Status register 2*/
/*Mask flags except USB Function Interrupt status flags*/
/*Write to USB Interrupt Status register 1*/
/*Write to USB Interrupt Status register 2*/
;*Read from USB Interrupt Status register 1*
;*Read from USB Interrupt Status register 2*
;*Mask flags except USB Function Interrupt status flags*
;*Write to USB Interrupt Status register 1*
;*Write to USB Interrupt Status register 2*
Universal Serial Bus

Advertisement

Table of Contents
loading

Table of Contents