PIC16F84A AND TSA5511Originally Posted by mister_e
refering to table 2 of the datasheet
Code:IF LOCK.6=1 then LCDOUT $FE,1,"PLL in-lock" endif
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thank you , it's work but show continues.Originally Posted by mister_e
I want to show on first line of lcd after the frequency
like this : 100.3 MHZ LOCK
and if not lock to show
like this : 100.3 MHZ UNLOCK
PBP manual, LCDOUT section
Code:LCDOUT $FE,1,your frequency plah plah,"MHZ " IF LOCK.6=1 then LCDOUT "Lock " else LCDOUT "Unlock" endif
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thank youOriginally Posted by mister_e
I write this code and work:
LCDOUT $FE, 1 'Clear LCD screen
LCDOUT #F2 'post the other digits
LCDOUT "." 'post the comma
LCDOUT #F3 'post the Khz
LCDOUT " MHz "
IF LOCK.6=1 then
LCDOUT "LOCK"
else
LCDOUT "UNLOCK"
endif
LCDOUT $FE,$C0
LCDOUT "PLL FM 87.5-108 "
Return
But i want the word LOCK or UNLOCK to begin at 13th position
I try this LCDOUT $FE, $80 +13
but it's not work
odd... it's working here..
LCDOUT $FE,($80+13),"lock"
Last edited by mister_e; - 5th July 2006 at 00:44.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Thank you very much.Originally Posted by mister_e
All work fine.
And the last question.
When the PLL is unlock shows LOCK and no UNLOCK, changes only if I push one button. Rather it wants one command that it would make I check the each situation of PLL little.
Or when I close the power and open again
Bookmarks