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.
Re: HOW to receive string using uart on pic18
Hi,
As ponnus suggested you can start a timer, but in a simpler way you can just wait for a timeout, for example, you can set a flag in the interrupt routine that will execute the following code:
.
.
.
stop_rx = 0...
Re: HOW to receive string using uart on pic18
Hello nick,
I'm not sure what is your problem, are you able to receive a character? or not able to receive anything? Your code seems fine to me, except that I don't see a definition for the i and j and also any variable that is being used in the...
Hi Kah Joo,
I don't have a recommended codec since we have been using a DSP with dedicated software decoder.
As for the price, I guess that you can either have a complex (and probably expensive) PLC solution or you can go with a low cost solution and add a codec to it.
In the XC8 compiler, try to replace the _delay_ms(1000) with _delay(1000)
the first gives a delay in milisec. and the second gives the delay in cycles.
Of course it will not give you the same delay but just see if it symmetric.
Think of a DC bus as a water pipes. There is always pressure(voltage) in the pipes but as long as the tap is closed no waters(current/energy) is being lost.
You can use a mechanical switch that will sit on the USB port and when a device is plugged in it will push the switch and activate the converter. This way when the converter will turn on the device will be detected.
Maybe you can just use a power supply of 12V DC and connect to it a simple car cigarette lighter with a switch.
Not the safest thing to do but it can work ( make sure you have a fire extinguisher also on the wall ;-) )
Take a look at Yamar PLC devices. They are very easy to operate, basically you just need a simple UART interface.
If you have any additional question let me know.
Hello Sinnadyr,
I can't say I've try TI PLC solution, however I can direct you to Yamar's DC-BUS solution. The EVBs information is at https://www.yamar.com/sig60evb.php
If you will give me some more details maybe I can help you more.
You do not need to program a CAN node for receive. Think of it as a smart UART, it is always in receive mode when you sent a CAN frame to the node, it will start to send it to the CAN BUS. If someone else is trying to transmit at the same time, then there will be a contest between them where the...
what type of CAN module are you using?
I don't think there is a special mode for transmitting, usually it is enough to send information to the CAN module and it will forward it to the CAN bus.
Some basic interfacing with the PC serial comm port:
using System.IO.Ports;
public static SerialPort _serialPort;
public Form1()
{
_serialPort = new SerialPort();
_serialPort.BaudRate = 9600;
_serialPort.Parity = Parity.None...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.