參數(shù)資料
型號: IJ80C52XXX-16:R
廠商: ATMEL CORP
元件分類: 微控制器/微處理器
英文描述: 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQCC44
封裝: LCC-44
文件頁數(shù): 168/182頁
文件大?。?/td> 2994K
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁當(dāng)前第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁
86
1477K–AVR–08/10
ATtiny26(L)
ples data at negative and changes the output at positive edges. The USI clock modes
corresponds to the SPI data mode 0 and 1.
Referring to the timing diagram (Figure 46.), a bus transfer involves the following steps:
1. The slave device and master device sets up its data output and, depending on the proto-
col used, enables its output driver (mark A and B). The output is set up by writing the
data to be transmitted to the serial Data Register. Enabling of the output is done by set-
ting the corresponding bit in the port data direction register (DDRB2). Note that point A
and B does not have any specific order, but both must be at least one half SCK cycle
before point C where the data is sampled. This must be done to ensure that the data
setup requirement is satisfied. The 4-bit counter is reset to zero.
2. The master generates a clock pulse by software toggling the SCK line twice (C and D).
The bit value on the slave and master’s data input (DI) pin is sampled by the USI on the
first edge (C), and the data output is changed on the opposite edge (D). The 4-bit counter
will count both edges.
3. Step 2. is repeated eight times for a comlpete register (byte) transfer.
4. After eight clock pulses (i.e., 16 clock edges) the counter will overflow and indicate that
the transfer is completed. The data bytes transferred must now be processed before a
new transfer can be initiated. The overflow interrupt will wake up the processor if it is set
to Idle mode. Depending of the protocol used the slave device can now set its output to
high impedance.
SPI Master Operation
Example
The following code demonstrates how to use the USI module as a SPI master:
SPITransfer:
out
USIDR,r16
ldi
r16,(1<<USIOIF)
out
USISR,r16
ldi
r16,(1<<USIWM0)+(1<<USICS1)+(1<<USICLK)+(1<<USITC)
SPITransfer_loop:
out
USICR,r16
sbis
USISR,USIOIF
rjmp
SPITransfer_loop
in
r16,USIDR
ret
The code is size optimized using only 8 instructions (+ ret). The code example assumes that the
DO and SCK pins are enabled as output in the DDRB Register. The value stored in register r16
prior to the function is called is transferred to the slave device, and when the transfer is com-
pleted the data received from the slave is stored back into the r16 register.
The second and third instructions clears the USI Counter Overflow Flag and the USI counter
value. The fourth and fifth instruction set Three-wire mode, positive edge Shift Register clock,
count at USITC strobe, and toggle SCK (PORTB2). The loop is repeated 16 times.
相關(guān)PDF資料
PDF描述
IR80C52TXXX-L16R 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQCC44
IR80C52TXXX-16SHXXX:RD 8-BIT, MROM, 16 MHz, MICROCONTROLLER, CQCC44
MR80C32-25/883R 8-BIT, 25 MHz, MICROCONTROLLER, CQCC44
MR80C52CXXX-12SBR 8-BIT, MROM, 12 MHz, MICROCONTROLLER, CQCC44
MR80C32-16SC 8-BIT, 16 MHz, MICROCONTROLLER, CQCC44
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
IJA12035A007V-001-R 功能描述:DC/DC CONVERTER 0.6-3.3V 115W 制造商:tdk-lambda americas inc. 系列:iJA 包裝:剪切帶(CT) 零件狀態(tài):有效 類型:非隔離 PoL 模塊,數(shù)字 輸出數(shù):1 電壓 - 輸入(最小值):8V 電壓 - 輸入(最大值):14V 電壓 - 輸出 1:0.6 ~ 3.3 V 電壓 - 輸出 2:- 電壓 - 輸出 3:- 電流 - 輸出(最大值):35A 功率(W) - 制造系列:- 電壓 - 隔離:- 應(yīng)用:ITE(商業(yè)) 特性:遠(yuǎn)程開/關(guān),OCP,OTP,SCP 安裝類型:表面貼裝 封裝/外殼:18-SMD 模塊 大小/尺寸:0.90" 長 x 0.50" 寬 x 0.38" 高(22.9mm x 12.7mm x 9.7mm) 工作溫度:-40°C ~ 120°C 效率:94% 功率(W) - 最大值:- 標(biāo)準(zhǔn)包裝:1
IJA35A-001-EVKIT-S1 功能描述:iJA12035 iJA DC/DC Converter 1, Non-Isolated Outputs Evaluation Board 制造商:tdk-lambda americas inc. 系列:iJA 零件狀態(tài):新產(chǎn)品 主要用途:DC/DC 轉(zhuǎn)換器 輸出和類型:1,非隔離 功率 - 輸出:- 電壓 - 輸出:0.6 V ~ 3.3 V 電流 - 輸出:35A 電壓 - 輸入:8 V ~ 14 V 穩(wěn)壓器拓?fù)?- 頻率 - 開關(guān):- 板類型:完全填充 所含物品:板,線纜 使用的 IC/零件:iJA12035 標(biāo)準(zhǔn)包裝:1
IJB12060A006V-003-R 功能描述:DC/DC CONVERTER 0.6-2V 120W 制造商:tdk-lambda americas inc. 系列:iJB 包裝:剪切帶(CT) 零件狀態(tài):有效 類型:非隔離 PoL 模塊,數(shù)字 輸出數(shù):1 電壓 - 輸入(最小值):8V 電壓 - 輸入(最大值):14V 電壓 - 輸出 1:0.6 ~ 2 V 電壓 - 輸出 2:- 電壓 - 輸出 3:- 電流 - 輸出(最大值):60A 功率(W) - 制造系列:- 電壓 - 隔離:- 應(yīng)用:ITE(商業(yè)) 特性:遠(yuǎn)程開/關(guān),OCP,OVP 安裝類型:表面貼裝 封裝/外殼:28-SMD 模塊 大小/尺寸:1.06" 長 x 0.95" 寬 x 0.38" 高(26.8mm x 24.1mm x 9.7mm) 工作溫度:-40°C ~ 120°C 效率:93% 功率(W) - 最大值:- 標(biāo)準(zhǔn)包裝:1
IJB60A-003-EVKIT-S1 功能描述:IJB EVAL BOARD (SINGLE) 制造商:tdk-lambda americas inc. 系列:iJB 零件狀態(tài):在售 主要用途:DC/DC 轉(zhuǎn)換器 輸出和類型:- 電壓 - 輸出:- 電流 - 輸出:- 電壓 - 輸入:- 穩(wěn)壓器拓?fù)?- 頻率 - 開關(guān):- 板類型:完全填充 所含物品:板 使用的 IC/零件:iJB 標(biāo)準(zhǔn)包裝:1
IJBEB2 功能描述:iJB12060A007V-001-R iJB DC/DC, Step Down 1, Non-Isolated Outputs Evaluation Board 制造商:tdk-lambda americas inc. 系列:iJB 零件狀態(tài):有效 主要用途:DC/DC,步降 輸出和類型:1,非隔離 功率 - 輸出:- 電壓 - 輸出:0.6 V ~ 2 V 電流 - 輸出:110A 電壓 - 輸入:8 V ~ 14 V 穩(wěn)壓器拓?fù)?降壓 頻率 - 開關(guān):- 板類型:完全填充 所含物品:板,線纜 使用的 IC/零件:iJB12060A007V-001-R 標(biāo)準(zhǔn)包裝:1