參數(shù)資料
型號: MB9AF311NPMC
元件分類: 微控制器/微處理器
英文描述: 32-BIT, FLASH, 40 MHz, RISC MICROCONTROLLER, PQFP100
封裝: 0.50 MM PITCH, PLASTIC, LQFP-100
文件頁數(shù): 79/114頁
文件大?。?/td> 1357K
代理商: MB9AF311NPMC
67
ATmega48PA/88PA/168PA [DATASHEET]
9223F–AVR–04/14
When reading back a software assigned pin value, a nope instruction must be inserted as indicated in Figure 14-4. The out
instruction sets the “SYNC LATCH” signal at the positive edge of the clock. In this case, the delay tpd through the
synchronizer is 1 system clock period.
Figure 14-4. Synchronization when Reading a Software Assigned Pin Value
The following code example shows how to set port B pins 0 and 1 high, 2 and 3 low, and define the port pins from 4 to 7 as
input with pull-ups assigned to port pins 6 and 7. The resulting pin values are read back again, but as previously discussed,
a nope instruction is included to be able to read back the value recently assigned to some of the pins.
Assembly Code Example(1)
...
; Define pull-ups and set outputs high
; Define directions for port pins
ldi
r16,(1<<PB7)|(1<<PB6)|(1<<PB1)|(1<<PB0)
ldi
r17,(1<<DDB3)|(1<<DDB2)|(1<<DDB1)|(1<<DDB0)
out
PORTB,r16
out
DDRB,r17
; Insert nop for synchronization
nop
; Read port pins
in
r16,PINB
...
C Code Example
unsigned char
i;
...
/* Define pull-ups and set outputs high */
/* Define directions for port pins */
PORTB = (1<<PB7)|(1<<PB6)|(1<<PB1)|(1<<PB0);
DDRB = (1<<DDB3)|(1<<DDB2)|(1<<DDB1)|(1<<DDB0);
/* Insert nop for synchronization*/
__no_operation();
/* Read port pins */
i = PINB;
...
Note:
1.
For the assembly program, two temporary registers are used to minimize the time from pull-ups are set on
pins 0, 1, 6, and 7, until the direction bits are correctly set, defining bit 2 and 3 as low and redefining bits 0
and 1 as strong high drivers.
SYSTEM CLK
INSTRUCTIONS
SYNC LATCH
PINxn
r16
r17
out PORTx, r16
nop
0x00
0xFF
in r17, PINx
t
pd
相關(guān)PDF資料
PDF描述
MB9AF316NPMC RISC MICROCONTROLLER, PQFP100
MB9AF314NPMC RISC MICROCONTROLLER, PQFP100
MB9AF312NPF RISC MICROCONTROLLER, PQFP100
MB9AF312LPMC1 RISC MICROCONTROLLER, PQFP64
MB9AF314LPMC RISC MICROCONTROLLER, PQFP64
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MB9AF312KPMC1-G-JNE2 功能描述:ARM? Cortex?-M3 FM3 MB9A310K Microcontroller IC 32-Bit 40MHz 160KB (160K x 8) FLASH 52-LQFP (10x10) 制造商:cypress semiconductor corp 系列:FM3 MB9A310K 包裝:托盤 零件狀態(tài):有效 核心處理器:ARM? Cortex?-M3 核心尺寸:32-位 速度:40MHz 連接性:CSIO,I2C,LIN,UART/USART,USB 外設(shè):DMA,LVD,POR,PWM,WDT I/O 數(shù):36 程序存儲容量:160KB(160K x 8) 程序存儲器類型:閃存 EEPROM 容量:- RAM 容量:16K x 8 電壓 - 電源(Vcc/Vdd):2.7 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x12b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 105°C(TA) 封裝/外殼:52-LQFP 供應(yīng)商器件封裝:52-LQFP(10x10) 標準包裝:160
MB9AF312KPMC-ES-E1 制造商:FUJITSU 功能描述:
MB9AF312KPMC-G-JNE1 制造商:FUJITSU 功能描述:
MB9AF312KPMC-G-JNE2 功能描述:ARM? Cortex?-M3 FM3 MB9A310K Microcontroller IC 32-Bit 40MHz 160KB (160K x 8) FLASH 48-LQFP (7x7) 制造商:cypress semiconductor corp 系列:FM3 MB9A310K 包裝:托盤 零件狀態(tài):有效 核心處理器:ARM? Cortex?-M3 核心尺寸:32-位 速度:40MHz 連接性:CSIO,I2C,LIN,UART/USART,USB 外設(shè):DMA,LVD,POR,PWM,WDT I/O 數(shù):36 程序存儲容量:160KB(160K x 8) 程序存儲器類型:閃存 EEPROM 容量:- RAM 容量:16K x 8 電壓 - 電源(Vcc/Vdd):2.7 V ~ 5.5 V 數(shù)據(jù)轉(zhuǎn)換器:A/D 8x12b 振蕩器類型:內(nèi)部 工作溫度:-40°C ~ 105°C(TA) 封裝/外殼:48-LQFP 供應(yīng)商器件封裝:48-LQFP(7x7) 標準包裝:250
MB9AF312KQN-ES-AWE2 制造商:FUJITSU 功能描述: