參數(shù)資料
型號: PIC16C64A
廠商: Microchip Technology Inc.
英文描述: Using the 8-Bit Parallel Slave Port(每個I/O口有25mA驅(qū)動/吸收電流,并行從動口,1路捕捉/比較/PWM的微控制器)
中文描述: 使用8位并行從動端口(每個的I / O口有25毫安驅(qū)動/吸收電流,并行從動口,1路捕捉/比較/脈寬調(diào)制的微控制器)
文件頁數(shù): 116/336頁
文件大?。?/td> 3529K
代理商: PIC16C64A
第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頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁第221頁第222頁第223頁第224頁第225頁第226頁第227頁第228頁第229頁第230頁第231頁第232頁第233頁第234頁第235頁第236頁第237頁第238頁第239頁第240頁第241頁第242頁第243頁第244頁第245頁第246頁第247頁第248頁第249頁第250頁第251頁第252頁第253頁第254頁第255頁第256頁第257頁第258頁第259頁第260頁第261頁第262頁第263頁第264頁第265頁第266頁第267頁第268頁第269頁第270頁第271頁第272頁第273頁第274頁第275頁第276頁第277頁第278頁第279頁第280頁第281頁第282頁第283頁第284頁第285頁第286頁第287頁第288頁第289頁第290頁第291頁第292頁第293頁第294頁第295頁第296頁第297頁第298頁第299頁第300頁第301頁第302頁第303頁第304頁第305頁第306頁第307頁第308頁第309頁第310頁第311頁第312頁第313頁第314頁第315頁第316頁第317頁第318頁第319頁第320頁第321頁第322頁第323頁第324頁第325頁第326頁第327頁第328頁第329頁第330頁第331頁第332頁第333頁第334頁第335頁第336頁
PIC16C6X
DS30234D-page 116
1997 Microchip Technology Inc.
12.3
USART Synchronous Master Mode
In Synchronous Master mode the data is transmitted in
a half-duplex manner i.e., transmission and reception
do not occur at the same time. When transmitting data
the reception is inhibited and vice versa. Synchronous
mode is entered by setting bit SYNC (TXSTA<4>). In
addition enable bit SPEN (RCSTA<7>) is set in order to
configure the RC6 and RC7 I/O pins to CK (clock) and
DT (data) lines respectively. The Master mode indi-
cates that the processor transmits the master clock on
the CK line. The Master mode is entered by setting bit
CSRC (TXSTA<7>).
12.3.1
USART SYNCHRONOUS MASTER
TRANSMISSION
The USART transmitter block diagram is shown in
Figure 12-7. The heart of the transmitter is the transmit
(serial) shift register (TSR). The shift register obtains its
data from the read/write transmit buffer register,
TXREG. The TXREG register is loaded with data in
software. The TSR register is not loaded until the last
bit has been transmitted from the previous load. As
soon as the last bit is transmitted, the TSR register is
loaded with new data from the TXREG register (if avail-
able). Once the TXREG register transfers the data to
the TSR register (occurs in one Tcycle), the TXREG
register is empty and interrupt flag bit TXIF (PIR1<4>)
is set. This interrupt can be enabled/disabled by set-
ting/clearing enable bit TXIE (PIE1<4>). Flag bit TXIF
will be set regardless of the status of enable bit TXIE
and cannot be cleared in software. It will clear only
when new data is loaded into the TXREG register.
While flag bit TXIF indicates the status of the TXREG
register, another bit, TRMT (TXSTA<1>), shows the
status of the TSR register. Status bit TRMT is a read
only bit which is set when the TSR register is empty. No
interrupt logic is tied to this bit, so the user has to poll
this bit in order to determine if the TSR register is
empty. The TSR register is not mapped in data memory
so it is not available to the user.
Transmission is enabled by setting enable bit TXEN
(TXSTA<5>). The actual transmission will not occur
until the TXREG register has been loaded with data.
The first data bit will be shifted out on the next available
rising edge of the clock on the CK line. Data out is sta-
ble around the falling edge of the synchronous clock
(Figure 12-12). The transmission can also be started by
first loading the TXREG register and then setting
enable bit TXEN (Figure 12-13). This is advantageous
when slow baud rates are selected, since the BRG is
kept in reset when bits TXEN, CREN, and SREN are
clear. Setting enable bit TXEN will start the BRG, cre-
ating a shift clock immediately. Normally when trans-
mission is first started, the TSR register is empty, so a
transfer to the TXREG register will result in an immedi-
ate transfer to TSR resulting in an empty TXREG reg-
ister. Back-to-back transfers are possible.
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
Clearing enable bit TXEN, during a transmission, will
cause the transmission to be aborted and will reset the
transmitter. The DT and CK pins will revert to hi-imped-
ance. If, during a transmission, either bit CREN or bit
SREN is set the transmission is aborted and the DT pin
reverts to a hi-impedance state (for a reception). The
CK pin will remain an output if bit CSRC is set (internal
clock). The transmitter logic however, is not reset
although it is disconnected from the pins. In order to
reset the transmitter, the user has to clear enable bit
TXEN. If enable bit SREN is set (to interrupt an on
going transmission and receive a single word), then
after the single word is received, enable bit SREN will
be cleared, and the serial port will revert back to trans-
mitting since enable bit TXEN is still set. The DT line
will immediately switch from hi-impedance receive
mode to transmit and start driving. To avoid this, enable
bit TXEN should be cleared.
In order to select 9-bit transmission, bit TX9
(TXSTA<6>) should be set and the ninth bit should be
written to bit TX9D (TXSTA<0>). The ninth bit must be
written before writing the 8-bit data to the TXREG reg-
ister. This is because a data write to the TXREG regis-
ter can result in an immediate transfer of the data to the
TSR register (if the TSR is empty). If the TSR register
was empty and the TXREG register was written before
writing the “new” TX9D, the “present” value of bit TX9D
is loaded.
Steps to follow when setting up a Synchronous Master
Transmission:
1.
Initialize the SPBRG register for the appropriate
baud rate (Section 12.1).
2.
Enable the synchronous master serial port by
setting bits SYNC, SPEN, and CSRC.
3.
If interrupts are desired, then set enable bit
TXIE.
4.
If 9-bit transmission is desired, then set bit TX9.
5.
Enable the transmission by setting enable bit
TXEN.
6.
If 9-bit transmission is selected, the ninth bit
should be loaded in bit TX9D.
7.
Start transmission by loading data to the
TXREG register.
相關(guān)PDF資料
PDF描述
PIC16C66 8-Bit CMOS Microcontrollers(每個I/O口有25mA驅(qū)動/吸收電流,1路捕捉/比較/PWM的微控制器)
PIC16C67 8-Bit CMOS Microcontrollers(每個I/O口有25mA驅(qū)動/吸收電流,1路捕捉/比較/PWM的微控制器)
PIC16C62 8-Bit CMOS Microcontrollers(每個I/O口有25mA驅(qū)動/吸收電流,22個I/O,2.5V的微控制器)
PIC16C62A 8-Bit CMOS Microcontrollers(每個I/O口有25mA驅(qū)動/吸收電流,22個I/O,2.5V的微控制器)
PIC16CR63 Using the 8-Bit Parallel Slave Port(每個I/O口有25mA驅(qū)動/吸收電流,1路捕捉/比較/PWM的微控制器)
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC16C64A/JW 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16C64A-04/L 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16C64A-04/L 制造商:Microchip Technology Inc 功能描述:8BIT CMOS MCU SMD 16C64 PLCC44
PIC16C64A-04/P 功能描述:8位微控制器 -MCU 3.5KB 128 RAM 33 I/O RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16C64A-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C64 DIP40