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.

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:
Hey eric you meant with digit 2 and digit 4 ?

hi,
What do you need to do to correct that duplicate DIGIT.???

The RX circuit/program responds to the UART input and appears to display the correct data.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top