USB????? - PowerPoint PPT Presentation

About This Presentation
Title:

USB?????

Description:

USB PIC USB PIC AVR I2C SPI – PowerPoint PPT presentation

Number of Views:48
Avg rating:3.0/5.0
Slides: 6
Provided by: 498852
Category:
Tags: usb

less

Transcript and Presenter's Notes

Title: USB?????


1
USB?? ??PIC??????
???? USB????? PICAVR?????(I2CSPI)
??? ????(500??) ICSP ???? ????????????
???? ?????? PIC18F14K50 USB??????? ??????? PC????
VB?C(VS2008)
2
?PC?????
3
????????
10F 12F 16F 18Fxxxx 18FxxKxx 18FxxJxx 24FJxxxGA0xx
30F ??????????????????? 33F/24H
32MX110/210 32MX120/220 32MX130/230
????? 32MX150/250 ?????
90S1200 90S2313 90S2323 tiny2313 tiny13
????? mega48/88/168/328
24FCxxx(?????????32?????????????) 25AAxxx/LCxxx(??
???????32?????????????)
4
?FastdataRegister????1?
?????????????????? FastdataRegister????? S3 ????
???
?FastdataRegister???????
????????(Web??)??????? 0x3c04ff20 ????????????(
a0 ???? )
uint32_t ICSP_read_word(uint32_t addr)
uint32_t addr_lo addr 0xFFFF uint32_t
addr_hi (addr gtgt 16) 0xFFFF uint32_t
word ICSP_serial_execution()
ICSP_XferInstruction(0x3c04ff20) //
lui s3, 0xFF20 ICSP_XferInstruction(0x3c080000
addr_hi) // lui t0, addr_hi
ICSP_XferInstruction(0x35080000 addr_lo) //
ori t0, addr_lo ICSP_XferInstruction(0x8d09000
0) // lw t1, 0(t0)
ICSP_XferInstruction(0xae690000) // sw
t1, 0(s3) ICSP_SendCommand(ETAP_cmd_len,
ETAP_FASTDATA) word ICSP_XferFastData(0)
return(word) // uint32_t ICSP_read_word()
5
?FastdataRegister????2?
Fastdata Register ???????????SRAM??????? (????0x00
000000)?????????
Fastdata Register ? SRAM?????????????? ?
?FastdataRegister????3?
Fastdata Register ????????????????? XferFastdata??
????????????????????
Fastdata Register ??????? ?
Write a Comment
User Comments (0)
About PowerShow.com