Need help with simulation of circuit.

Status
Not open for further replies.

moldmereal

New Member
Hi eric, as mentioned.. here are the codes...
On the Rx schematic, IC2 is actually a 4x7segment display
And both schematics have ER400TRS radio transceivers which you can ignore...
On the Tx would you mind connecting port C,4 to ground which is pin 15 to gnd
The Tx schematic would also have pin 17 connected to Pin 18 on the rx to test whether it works.

Thanks so much !
 

Attachments

  • RX.ASM
    7.5 KB · Views: 155
  • TX.ASM
    4.6 KB · Views: 139
hi MM.
The TX works OK, UART out OK, in the Oshonsoft simulator.
BUT this section of code uses the same data for two of the DIGITS.

Code:
TRIGGER        btfss        SWITCH        ;is trigger button pressed?
        call        DEBOUNCE    ;yes, wait
        btfsc        SWITCH        ;is trigger button pressed?
        goto        TRIGGER        ;no, check again

        movfw        PORTA
        andwf        MASK,W
        movwf        DIGIT1

        swapf        PORTA,W
        andwf        MASK,W
        movwf        DIGIT2

        movfw        PORTB
        andwf        MASK,W
        movwf        DIGIT3

        swapf        PORTA,W
        andwf        MASK,W
        movwf        DIGIT4
Can you see the duplication.??
Will check the RX later.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…