The code for the TX part of the USART is simplified in that it generates 10 bits of serial data with no parity bit. Since each bit takes 1/2400 seconds the total time to transmit a digit is 4.16ms. Adding a pic serial port connection to the circuit gives you scope for much more interesting projects as you can collect data from the ADC (inputs) or comparator or external infrared receiver module etc. and transmit it to a PC.
Saturday, April 7, 2012
Control Straightforward Loop Operation
In a current loop, the output voltage from a sensor is first converted to a proportional current, in which 4mA normally represents the sensor's zero-level output and 20mA represents the full-scale output. A receiver at the remote end converts the 4-20mA current back to a voltage, which can be further processed by a computer or display module. The typical 4-20mA current-loop circuit consists of four elements: a sensor/transducer, a voltage-to-current converter, a loop power supply, and a receiver/monitor. In loop-powered applications, the sensor drives the voltage to- current converter, and the other three elements are connected in series to form a closed loop. This is the figure of the operation diagram.
Control RJ45 Port Pin Out
RJ45 is used to connect Ethernet port on your computer. There are two configuration: straight and cross. Straight RJ45 cables should be used to connect between computer and device such as switch or hub, and cross RJ45 cables should be used in computer-to-computer connection. Some hub or switch has the capability to detect the cable type and accept both straight and cross RJ45 cables. This is the figure of the wiring diagram.
A straight Ethernet cable has same RJ-45 pin-out configuration at both end of the CAT-5 cable, either by using EIA/TIA-568A standard or EIA/TIA-568B standard.