Anuradha1
Member level 2
Hello all,
I am using PIC simulator IDE to simulate my assembly code written for pic16f877a with oscillator frequency 16MHz.
I am sending data to UART.
In my code i can adjust the delay between sequent transmission as follows.
movf WH,0
movwf TXREG ;Transmit to PC
call Delay
call Delay
movf WL,0
movwf TXREG ;Transmit to PC
call Delay
call Delay
The Delay loop I have written is given below.
Delay
decfsz CounterL,1
goto Delay
return
But when i simulate it doesnot transmit data to UART simulation interface according to the delay time i have given in the program.
I can increase the transmission rate by reducing tx delay time in "Change UART Transmit/Receive time" in option tab of the IDE window. When i reduce this time the simulator works nicely according to the time set there.
What i want to know is Can i adjust the delay of sequent transmissions in my code, so that it works according to the delay i need/ i give, not depending on the value set at "Change UART Transmit/Receive time" of simulator interface.
As i have seen simulator doesnot take the delays given in the code.
Also what is the minimum time duration I can have between two sequent transmissions from Uart?
Any information? advice regarding this matter is appreciated.
Thanks in advance.
I am using PIC simulator IDE to simulate my assembly code written for pic16f877a with oscillator frequency 16MHz.
I am sending data to UART.
In my code i can adjust the delay between sequent transmission as follows.
movf WH,0
movwf TXREG ;Transmit to PC
call Delay
call Delay
movf WL,0
movwf TXREG ;Transmit to PC
call Delay
call Delay
The Delay loop I have written is given below.
Delay
decfsz CounterL,1
goto Delay
return
But when i simulate it doesnot transmit data to UART simulation interface according to the delay time i have given in the program.
I can increase the transmission rate by reducing tx delay time in "Change UART Transmit/Receive time" in option tab of the IDE window. When i reduce this time the simulator works nicely according to the time set there.
What i want to know is Can i adjust the delay of sequent transmissions in my code, so that it works according to the delay i need/ i give, not depending on the value set at "Change UART Transmit/Receive time" of simulator interface.
As i have seen simulator doesnot take the delays given in the code.
Also what is the minimum time duration I can have between two sequent transmissions from Uart?
Any information? advice regarding this matter is appreciated.
Thanks in advance.