English French German Italian Portuguese Russian Spanish

v1

Survey

Which microcontroller family do you prefer?
 

Did you know?

ÿþAccording to Moore's Law, microchips double in power every 18 to 24 months.

Forum elektronika, schematy, porady, naprawa

FacebookTwitter

 

Home > dsPic tutorial > INPUTOUTPUT PINS
(3 votes, average 4.33 out of 5)
dsPic tutorials - 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)
dsPic tutorials - 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)
dsPic tutorials - 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...