• Hello,

    I'm trying to communicate with PIC16F628A on serial. I have a STM32F4 Discovery Board intalled Espruino.

    I have coded 16F628A with PicC. I can simulate the hex file in ISIS Proteus. It works perfect on ISIS Proteus. PIC's job is easy, reat the TX and write it to RX. So, work is a simple ECHO

    Simulation works good, but problem occurs in real world. I'm writing the hex file to PIC and wiring it with Espruino board.

    From Espruino I'm sending some chars over TX to the PIC but getting back random values on RX. You can find attached images how do I wire it.

    I think this problem is not about Espruino, because when I plug boards TX and RX pins together Espruino can write and read wery well.

    But I'm wondering about wiring or you may give me an idea.

    Here is my Espruino code :

    Serial1.setup(9600,{rx:B7,tx:B6});
    Serial1.on('data', function (data) { console.log(data); });
    
    setInterval(function(){
    	Serial1.print("Hello World");
    },500);
    

    1 Attachment

    • IMG-20150531-WA0013.jpg
About

Avatar for fobus @fobus started