265/317
9 - A Carrier-current System for domestIc Remote Control
case 29 :
case 31 :
case 33 :
if ( ( TempHouseCode & 1 ) != 0 )
TACR1 |= ( 1 << OLVL1 ) ;
/* Validate pulse for next
interrupt */
else
TACR1 &= ~( 1 << OLVL1 ) ;
/* Invalidate pulse for next
interrupt */
break ;
case 6 :
case 8 :
case 10 :
/* Transmit the complement of one of the four bits
of house code */
case 12 :
case 28 :
case 30 :
case 32 :
case 34 :
if ( ( TempHouseCode & 1 ) == 0 )
TACR1 |= ( 1 << OLVL1 ) ;
/* Validate pulse for next
interrupt */
else
TACR1 &= ~( 1 << OLVL1 ) ;
/* Invalidate pulse for next
interrupt */
TempHouseCode >>= 1 ;
/* Finished with this bit. Ready for
next bit */
break ;
case 13 :
case 15 :
case 17 :
/* Transmit one of the five bits of Key code */
case 19 :
case 21 :
case 35 :
case 37 :
case 39 :
case 41 :
case 43 :
if ( ( TempKeyCode & 1 ) != 0 )
TACR1 |= ( 1 << OLVL1 ) ;
/* Validate pulse for next
interrupt */
else
TACR1 &= ~( 1 << OLVL1 ) ;
/* Invalidate pulse for next
interrupt */
break ;
case 14 :
case 16 :
case 18 :
/* Transmit the complement of one of the five bits
of Key code */
case 20 :
case 22 :
Содержание ST7 Series
Страница 1: ...ST7 8 BIT MCU FAMILY USER GUIDE JANUARY 1999 1 ...
Страница 238: ...238 317 8 C Language and the C Compiler 08 Burn bmp Then use the EPROMer programmer software as described in Chapter 7 ...
Страница 289: ...289 317 10 Second Application a Sailing Computer 10 befor Bs Rw Vw VMG AlphaR AlphaV Before the wind ...