-
Search Results
-
How can I connect these LEDs and switches to PIC 16F84A ? I need to have PIC to PIC communication and the program has to be in assembly using MPLAB.
I just purchased your PICKit3 from ebay. Received it yesterday. Wonder if you can help me with a technical problem.
I am familiar with the ICD3 but never used PICKit3.
I am using the Pickit 3 with MPLAB IPE to load a hex file. The chip is a 16F877A. Hex is loaded successfully in the software. Power is selected from Pickit 3 device. I get this error.
The target circuit may require more power than the debug tool can provide. An external power supply might be necessary.
This error occurs on both MPLAB X IDE and MPLAB IPE.
I understand that the current limit on the Pickit 3 is 30mA. I am only using the programmer to hold the chip. Am I doing something wrong? Or the device cannot power a 16F877A?Dear folks,
I ‘m working on overvoltage undervoltage protection device project, in this project PIC 16F877a microcontroller is used, but problem is that i’m not familer with PIC micrcomtroller so that i faced too much trouble, for that project i ‘m using “Hitech C compiler” i have little bit knowledge about PIC micrcontroller but i’m quiet good in AVR microcontroller(atmega16), so can you please provide me code for this project.
I’m also attach code which is is found to be error on MPLAB softwaree along with the “CIRCUIT DIAGRAM”.so please reply me, i ‘m waiting for your responce .
Thanks & regards
Hi guys, i have followed the tutorials on
1. Using UART of PIC Microcontroller – MPLAB XC8 at https://electrosome.com/uart-pic-microcontroller-mplab-xc8/
2. Using UART on raspberry Python. Link at https://electrosome.com/uart-raspberry-pi-python/
The project i am working on will have me send pure strings(texts) from raspberry Pi to PIC and vice versa using UART, I have wired the circuit as expected but the message i am getting on the raspberry Pi and on the PIC is sort of garbled. I do not know what is responsible for this, please does anyone have an idea of what i should do to get the messages in the write format. Thanks!
How to display floating point values on LCD ? I am using MPLAB XC8 LCD Library.
I’m trying send data to the PIC using the Terminal Window on Proteus, but something is wrong and I don’t understand why. I attached the Proteus project and *.HEX.
The PIC is 16F628a.
#define _XTAL_FREQ 8000000 #define RS RB0 #define EN RB3 #define D4 RB4 #define D5 RB5 #define D6 RB6 #define D7 RB7 #include <xc.h> #include "lcd.h" #include "uart.h" #pragma config FOSC = INTOSCCLK // Oscillator Selection bits (INTOSC oscillator: CLKOUT function on RA6/OSC2/CLKOUT pin, I/O function on RA7/OSC1/CLKIN) #pragma config WDTE = OFF // Watchdog Timer Enable bit (WDT disabled) #pragma config PWRTE = OFF // Power-up Timer Enable bit (PWRT disabled) #pragma config MCLRE = OFF // RA5/MCLR/VPP Pin Function Select bit (RA5/MCLR/VPP pin function is digital input, MCLR internally tied to VDD) #pragma config BOREN = ON // Brown-out Detect Enable bit (BOD enabled) #pragma config LVP = OFF // Low-Voltage Programming Enable bit (RB4/PGM pin has digital I/O function, HV on MCLR must be used for programming) #pragma config CPD = OFF // Data EE Memory Code Protection bit (Data memory code protection off) #pragma config CP = OFF // Flash Program Memory Code Protection bit (Code protection off) void main() { TRISB = 0b000000110; TRISA0 = 0; Lcd_Init(); Lcd_Clear(); Lcd_Set_Cursor(1,1); Lcd_Write_String("WAITING..."); UART_Init(9600); UART_Write_Text("Terminal is running!"); while(1) { if(UART_Data_Ready()) { Lcd_Clear(); RA0 = 1; Lcd_Write_String(UART_Read_Text); __delay_ms(1000); } } }The UART.h and LCD.h from https://electrosome.com/lcd-pic-mplab-xc8/ and https://electrosome.com/uart-pic-microcontroller-mplab-xc8/
Somebody know why the code is not working?
