Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Transmitter/Receiver delay subroutine using TMR0

Status
Not open for further replies.

tschen

Junior Member level 3
Joined
May 10, 2007
Messages
27
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,466
;2.5s DELAY
DELAY1: CLRF TMR0 ;START TMR0
LOOPA MOVF TMR0,W ;READ TMR0 INTO W
SUBL .9766 ;TIME - W
BTFS STATUS,Z ;CHECK TIME - W = 0
GOTO LOOPA
RETLW 0 ;RETURN AFTER TMR0=>(1MHz/256) = 3906.25Hz

I'm using TLP/RLP 434A conncted to PIC16F877A with 4MHz external clock. I intend to send a pulse using the delay subroutines. 2.5s represents a logic 0, 5s for logic 1 and 7.5s for a start bit.

I tested the .asm codes on the breadboard and it seems that the pulse is not generated. Why is that???
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top