How to Wire a PIC Microcontroller

  
Inside:
Repository
I managed to program my PIC 16f627 to turn on three LEDs when push button (trigger button) is pressed and start a shut down sequence (basically each LED toggles off one after another with a 5 second delay in between) when another pushbutton is pressed (reset button). I`ve been testing this on a Velleman`s K8048 PIC Programmer/ Experimentat
How to Wire a PIC Microcontroller - schematic

ion board. PINs RA0 and RA2 are the inputs for the trigger and reset pushbuttons respectively while pins RB0, RB1, and RB2 are the output pins for the LEDs. Working with the experimentation board is great but I want to move this to an actual circuit. The problem is I have no idea where to start. I`ve bought 3 LEDs (3. 3 Volts each), some pushbuttons, and wire and I`ve constructed the following circuit: In the circuit I constructed, I first tested to see if the LEDs would work with 3 1. 5 Volt AA batteries and they worked fine so I figured resisters wouldn`t be necessary. This does not work, however, and I`m totally lost. For reference, here is my code for the PIC. Its written in C using MikroC. It works on the experimentation board so I don`t think its a problem void main() { TRISB. RB0 = 0; TRISB. RB1 = 0; TRISB. RB2 = 0; PORTB. RB0 = 0; PORTB. RB1 = 0; PORTB. RB2 = 0; CMCON = 0x07; TRISA = 255; for(;){ if(PORTA. RA0 = 1 && PORTB. RB0 = 1 && PORTB. RB1 = 1 && PORTB. RB2 = 1){ delay_ms(5000); PORTB. RB0 = 0; delay_ms(5000); PORTB. RB1 = 0; delay_ms(5000); PORTB. RB2 = 0; } if(PORTA. RA2 = 1){ PORTB. RB0 = 1; PORTB. RB1 = 1; PORTB. RB2 = 1; } } }



Recommended videos


  • PIC Microcontroller Project, Program
     
  • Microcontroller Circuit Diagram
     
  • How to programming pic microcontroller Simple JDM programmer with circuit diagram
    Duration: 2:58.

News


  • Forbes
    Forbes : Samsung Reveals Galaxy S8, New Nokia Sells Out, Deciding The S8 Launch DateTaking a look back at seven days of news and headlines across the world of Android, this week's Android includes Samsung's reveal of the Galaxy S8, the d
     21 January 2017
  • Cabinet.com
    Cabinet.com MILFORD - The recipe for success among local "makers" is a simple one. Take a dollop of "wonder-if," add a splash of "maybe-could" and blend in some gadgets connected to a board awaiting computer-generated commands. The proce
     20 January 2017
  • Wall Street Journal (blog)
    Wall Street Journal (blog) Talent Pool: Make It GreatAs president, Mr. Trump must share his “do well” message with the country's 7.5 million information professionals who carry a legacy of “incredible innovation”
     20 January 2017
  • TWN
    TWN Stocks Flagged As Top Movers: Jabil , Inc. (NYSE:JBL), Yandex N.V. (NASDAQ:YNDX)Sell-side analyst recommendations point to a short term price target of $24.55 on the shares of Jabil , Inc. (JBL). The consensus rating is 2.6, suggesti
     19 January 2017
  • The Independent Republic
    Stocks To Look Out For: Ciena (CIEN), Jabil (JBL)Ciena Corporation (CIEN) ended last trading session with a change of 0.97 percent. It trades at an average volume of 2.75M shares versus 1.71M shares recorded at the end of last trading sess
     19 January 2017
  • Is stories
    Stock: Jabil , Inc.'s (JBL)Jabil , Inc.'s (JBL) witnessed a gain of 0.81% in recent trading period with closing price of $23.58. The company's last traded volume of 1.17 million shares as compared to it's an average volume of 2.11 million s
     18 January 2017
  • The Independent Republic
    Baxley Report Stocks To Look Out For: Jabil , Inc. (JBL), Extreme Networks, Inc. (EXTR)Jabil , Inc. (JBL) ended last trading session with a change of 0.81 percent. It trades at an average volume of 2.11M shares versus 1.17M shares record
     16 January 2017
  • Moneycontrol.com
    locked at 5% upper on IT project from US GSATrigyn locked at 5% upper on IT project from US GSA. Shares of Trigyn were locked at 5 percent upper at Rs 111.50 on Thursday after its subsidiary received IT contract from the independent ag
     12 January 2017
  • PCWorld
    gets upgrade after 35 yearsInside wearables, smart devices, robots, and computers like Raspberry Pi are communications buses called I2C (Inter Integrated ), which date back to 1982, and SPI (Serial Peripheral Interface), which was born in 1
     10 January 2017

.