| 数据搜索系统,热门电子元器件搜索 |
|
HCS515 数据表(PDF) 13 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
HCS515 数据表(HTML) 13 Page - Microchip Technology |
|
13 / 28 page ![]() © 2002 Microchip Technology Inc. DS40183D-page 13 HCS515 FIGURE 4-8: LEARN STATUS MESSAGE AFTER FIRST TRANSMISSION FIGURE 4-9: LEARN STATUS MESSAGE AFTER SECOND TRANSMISSION 4.3 Stand-Alone Mode The HCS515 decoder can also be used in stand-alone applications. The HCS515 will activate the data line for up to 500 ms if a valid transmission was received, and this output can be used to drive a relay circuit. To acti- vate learn or erase all commands, a button must be connected to the CLK input. User feedback is indicated on an LED connected to the S_DAT output line. If the CLK line is pulled high, using the learn button, the LED will switch on. After the CLK line is kept high for longer than 2 seconds, the decoder will switch the LED line off, indicating that learn will be entered if the button is released. If the CLK line is kept high for another 6 sec- onds, the decoder will activate an ERASE_ALL com- mand. Learn mode can be aborted by taking the clock line high until the data line goes high (LED switches on). During learn, the data line will give feedback to the user and, therefore, must not be connected to the relay drive circuitry. Note: The Repeat bit must be cleared in the configuration byte in Stand-alone mode. After taking the clock low and before a transmitter is learned, any low-to-high change on the clock line may terminate learn. This has learn implications when a switch with contact bounce is used. 4.4 Erase All Command and Erase Command The Table 4-3 describes two versions of the Erase All command. Subcommand 01 can be used where a transmitter with permanent status is implemented in the microcontroller software. Use of subcommand 01 ensures that the permanent transmitter remains in memory even when all other transmitters are erased. The first transmitter learned after any of the following events is the first transmitter in memory and becomes the permanent transmitter: 1. Programming of the manufacturer’s code. 2. Erasing of all transmitters (subcommand 00 only). Command Request TCLKL TCLKH TACT AB TCLL TDHI TCLA TCLH CLK Decoder 0 0 0 0 0 0 0 0 Status Byte C Data Communications Request TCLKL TCLKH TACT AB CII TCLL TDHI TCLA TCLH CLK Decoder TX0 TX3 RX63 OVR RSLT 0 0 0 0 CNT0 CNT3 0 RX0 RX1 RX62 1 CI Learn Status Bits Decoded TX DATA TABLE 4-3: ERASE ALL COMMAND Command Byte Subcommand Byte Description C3 HEX 00 HEX Erase all transmitters. C3 HEX 01 HEX Erase all transmit- ters except 1. The first transmitter in memory is not erased. |
|
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |