Part Number Hot Search : 
GV2ME03 MAX9158 Z8F3201 LC8903Q BPC25 K2125 CM6503 1M080H
Product Description
Full Text Search
 

To Download HA0064E Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 312 Decoder (10+2 - Corresponds to HT6010/HT6012)
312 Decoder (10+2 - Corresponds to HT6010/HT6012)
D/N: HA0064E
Introduction
This application shows how to use the HT48R50A-1 to simulate the HT6032 3
12
decoder
function to decode the 10 Address bits and 2 Data bits for the HT6010/HT6012.
Function and Theory
The 3 Decoder function can decode the 10 Address bits and 2 Data bits each of which can be set individually to either 1 and 0. MCU: HT48R50A-1 Method: uses the HT6032 decoding process (see the HT6032 datasheet) to check the corresponding signal width to judge if the signal is either a 0, 1 or floating. The corresponding width can decode skewed signals, the tolerance of which can be adjusted by MAXDURATION in the program. Pin Function: PB0~PB7: Address input pins PC0~PC1: Address input pins PD2~PD3: Data output pins PA5: Serial data input pin PD4: Valid transmission pin 1
12
312 Decoder (10+2 - Corresponds to HT6010/HT6012)
Software IP: 3 _10+2 Decoder Subroutine Usage Description Table IP Name (Label)
12 12
System Resources
Functional Description Decode 12 bits of information from the 3 Encoder HT48R50A-1 213 15 Bytes: HI_COUNTLO_COUNT HI_COUNT_SAVE LO_COUNT_SAVEBITCOUNTER DATARESADD_RES2 ADD_RES1ADD_RES0 WORDCNTVTCOUNT1 VTCOUNT0DECODER_CODE[2] DECODER_CODE[1] DECODER_CODE[0] 5 Bits: DECODER_ENDECODER_FLAG DECODER_STATUSMATCHBIT VTBIT
12
3 _10+2D Function MCU ROM RAM
Stack Subroutine/Macro I/O lines
1 level used Subroutine 14 I/O lines PB0~PB7: input pins(I/O), non-pull high PC0~PC1: input pins(I/O), non-pull high PD2~PD4: output pin(I/O), pull high PA5: input pin(I/O), pull high 8MHz RC TMR INTERUPT Set address pins CALL DECODER_INITIAL
fSYS Other MCU resources User interface
2
312 Decoder (10+2 - Corresponds to HT6010/HT6012)
Program Flowchart
A INITIAL N N DECODER_STATUS= 1? Y HI_COUNT Increase 1 VTCOUNT1 Decrease 1 N N Match with receives ? Y Read 10-bit address
VTCOUNT1=0? Y N VTCOUNT0=0? Y Clear VT pin
Z= 1? Y LO_COUNT Decrease 1
WORDCNT=0? N MATCHBIT=0? Y
Clear VTBIT
Return to Main
VTCOUNT1=E3H
Set DECODER_STATUS
N WORDCNT=1? Y Set MATCHBIT
VTCOUNT0 Decrease 1
Move HI_COUNT to HI_COUNT_SAVE
Y N
Y
LO_COUNT Increase 1 N
Y LO_COUNT Decrease 1
Set C
Return to Main
RRC DECODER_CODE[2]
Set VT and VTBIT Return to Main
Clear DECODER_STATUS
RRC DECODER_CODE[1]
Move LO_COUNT to LO_COUNT_SAVE
RRC DECODER_CODE[0]
BITCOUNTER Decrease 1 Clear LO_COUNT N BITCOUNTER=0? HI_COUNT_SAVE< MAXDURATION? N B BITCOUNTER=12 Y Clear DECODER_CODE[0],DE CODER_CODE[1] Move DECODER_CODE[1] to DATARES Y Return to Main N Y
Clear DECODER_FLAG, MATCHBIT
Clear LO_COUNT_SAVE and HI_COUNT_SAVE
Return to Main
WORDCNT=3?
Return to Main
WORDCNT Decrease 1
A
3
Z=1?
DECODER_STATUS= 0
DECODERPIN=0
N
N
LO_COUNT_SAVE< MAXDURATION? Y
Return to Main
B
N
HI_COUNT_SAVE >LO_COUNT_SAVE Y Clear C
Set DECODER_FLAG
Output data to data pins
VTCOUNT1=E3H VTCOUNT0=06H
'
Y
N
312 Decoder (10+2 - Corresponds to HT6010/HT6012)
Program Description
Refer to the ASM file that contains one main program code file for users to follow and add their own programs. Users need to add the INCLUDE 10+2.ASM and MAIN.ASM files to their project. The ASM text file include the DEFINE.ASM, INTERUPT.ASM, STDUC.ASM, MEMORY.ASM and MACRO.ASM files that should be added in the project.
4


▲Up To Search▲   

 
Price & Availability of HA0064E

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X