Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

clearing speed

Status
Not open for further replies.

Alpharsp

New Member
Hello there xD this is my first post
well im making a serial iterface to control the lcd
and i want to make my own prtocol
so when i send a 211 (ascii code)
the pic 16f877 clear the lcd

im using the xorlw instruction to compare:

when i receive an interruption from usart
MOVF RCREG
XORLW .211
BTFSS STATUS,Z
GOTO EXIT
CALL CLEARLCD
;followed by other comparations

as u can se i want to compare more numbers but i want to know if the status,z will be ready (cleared again) when i do the next comparation

the question is how many instructions or time does the Z needs to be cleared by itslf

if the answer is a lot xD, can i clear it by software? (bcf status,z)


well i hope u can understan what i say because im not pretty good in english xD, thanks


------------------------------------------------------------------------------

Forget it >_<
The datasheet says that if is not zero, the STATUS,Z will be cleared automatically
So with each comparation, it will show if is or not a zero
 
Last edited:
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top