English French German Italian Portuguese Russian Spanish

v1

Survey

Which microcontroller family do you prefer?
 

Did you know?

The Brooklyn Bridge was the first bridge to be lit using electricity.

Forum elektronika, schematy, porady, naprawa

FacebookTwitter

 

Home > dsPic tutorial
(1 vote, average 5.00 out of 5)
UART

microcontroller uart_rs232_adaptor2The Universal Asynchronous Receiver Transmitter (UART) module is one of the serial I/O modules available in the dsPIC30F device family. The UART is a full-duplex asynchronous system that can communicate with peripheral devices, such as personal computers, RS-232 and RS-485 interfaces.

The primary features of the UART module are:

Read more...

 
(3 votes, average 4.33 out of 5)
INPUT/OUTPUT PINS

ioThe general purpose I/O ports allow the dsPIC30F to monitor and control other devices. Most I/O pins are multiplexed with alternate function(s). The multiplexing will depend on the peripheral features on the device variant. In general, when a peripheral is functioning, that pin may not be used as a general purpose I/O pin. All port pins have three registers directly associated with the operation of the port pin:

  1. TRISx-Data Direction register
  2. LATx  I/O Port register
  3. PORTx  I/O Latch register

Read more...

 
(2 votes, average 4.00 out of 5)
INPUT/OUTPUT PINS

 buttonIn this example RB1 pin is used as digital output pin and RD0 is used as digital input pin. Pin RDO is connected with taster as on picture. RB1 pin can be used as general purpose output pin to drive LED diode directly or as TTL level signal output. When we push button, we change state of diode. Complete source code programmed in dsPic C30 compiler with MPLAB project files is provided and every line has comments with detailed explanation.



 

 

 

Read more...

 
(2 votes, average 4.00 out of 5)
INPUT/OUTPUT PINS

blinkledIn this example  RB4, RB5 and RD0 pins are used as digital output pins. These pins can be used as general purpose output pins (GPIO pins) to drive LED diode directly or as TTL level signal output. Complete source code programmed in dsPic C30 compiler with MPLAB project files is provided and every line has comments with detailed explanation.

 

 

Read more...