PIC Archives - electroSome https://electrosome.com/topic-tag/pic/ You Inspire.....We Create..... Fri, 21 Dec 2018 11:46:24 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 adc not working on hardware but works on proteus https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/ Thu, 20 Dec 2018 12:31:32 +0000 https://electrosome.com/topic/adc-not-working-on-hardware-but-works-on-proteus/ I’m doing ADC with PIC 18F46K22, 16×2 lcd, LM3 temperature sensor, 20 MHz oscillator, MPLAB XC8 and PicKit3 programmer. I can do the generate the hex file and simulate it on Proteus and it works fine, but on hardware it doesn’t work. The LCD is switched on, but doesn’t display the analog value. I wrote a small […]

The post adc not working on hardware but works on proteus appeared first on electroSome.

]]>
I2C Communication with other than designated pins https://electrosome.com/topic/i2c-communication-with-other-pins/ Tue, 18 Dec 2018 11:52:39 +0000 https://electrosome.com/topic/i2c-communication-with-icsp-pins/ I am using PIC 18F87k90. Is it possible to do serial I2C communication with other than SDA and SCL pins. Can I use PGD and PGC pins ?

The post I2C Communication with other than designated pins appeared first on electroSome.

]]>
UART communication between PIC16F18855 and PIC18F45K20 https://electrosome.com/topic/uart-communication-between-pic16f18855-and-pic18f45k20/ Fri, 28 Sep 2018 08:20:52 +0000 https://electrosome.com/topic/uart-communication-between-pic16f18855-and-pic18f45k20/ How can i communicate between 2 microcontrollers ( PIC16F18855 and PIC18F45K20 ) through UART ( in MPLAB Using MCC ). Where i should be able to send an array of data from PIC16 to PIC18 and vice versa

The post UART communication between PIC16F18855 and PIC18F45K20 appeared first on electroSome.

]]>
I am having a problem using PIC16F877A https://electrosome.com/topic/i-am-having-a-problem-using-pic16f877a/ Mon, 05 Feb 2018 12:09:07 +0000 https://electrosome.com/topic/i-am-having-a-problem-using-pic16f877a/ I noticed that most times I write code with pic16f877a, it doesn’t work properly, gives me error messages on proteus say memory load too large… please I need help… what can be done to this

The post I am having a problem using PIC16F877A appeared first on electroSome.

]]>
MPLAB vs Hi-Tech C vs XC8 https://electrosome.com/topic/mplab-vs-hi-tech-c-vs-xc8/ Wed, 25 Oct 2017 15:53:19 +0000 https://electrosome.com/topic/mplab/ Hello guys, I wish to learn about PIC programming via MPLAB. There are many compiler in MP lab such as Hi-Tech C, XC8 and so on. Can someone please  explain the differences between each compilers and when to use them. Thank you! Dilshan

The post MPLAB vs Hi-Tech C vs XC8 appeared first on electroSome.

]]>
Delay using interrupt https://electrosome.com/topic/delay-using-interrupt/ Wed, 21 Jun 2017 16:57:33 +0000 https://electrosome.com/topic/delay-using-interrupt/ Hello Guys, I am trying to implement a delay using timer0 interrupt. I’ll just post an abstraction of the code in mikroc void inittimer() { //Timer initialization for a 32ms interrupt } void interrupt() { //interrupt code; delayvariable++; } void main() { TRISB = 0;          //PORTB is output TRISC.F0 = 1; […]

The post Delay using interrupt appeared first on electroSome.

]]>
PIC I2C Slave Mode Multi Byte Reception https://electrosome.com/topic/pic-i2c-slave-mode-multi-byte/ Tue, 25 Apr 2017 18:10:05 +0000 https://electrosome.com/topic/i2c-slave-mode/ I am sending 32 bytes from master microcontroller using your I2C library. How can I do that ? Your library handles only single byte of information. ////SLAVE CODE DATA READ // if(!SSPSTATbits.D_nA && !SSPSTATbits.R_nW) { z = SSPBUF;//Address Read while(!BF); d=SSPBUF;      //data Read SSPCONbits.CKP = 1; inputflag=1; }

The post PIC I2C Slave Mode Multi Byte Reception appeared first on electroSome.

]]>
Convert an analog audio signal to digital with a PIC https://electrosome.com/topic/convert-an-analog-audio-signal-to-digital-with-a-pic/ Mon, 10 Apr 2017 14:09:02 +0000 https://electrosome.com/topic/convert-an-analog-audio-signal-to-digital-with-a-pic/ Convert an analog audio signal to digital with a PIC and send the data through serial to a blutooth Module HC05 or HC06 I want to convert an analog audio signal to digital signal and send it to serial input in blutooth Module. How can I do this? Microcontroller used: PIC18f452 regard

The post Convert an analog audio signal to digital with a PIC appeared first on electroSome.

]]>
PIC Microcontroller Transmitter & Receiver Frequency Problem https://electrosome.com/topic/pic-microcontroller-transmitter-receiver-frequency/ Sun, 02 Apr 2017 17:49:13 +0000 https://electrosome.com/topic/wat-may-b-the-issue/ I made a transmitter and receiver using PIC 16F877A. It is designed for 8MHz and I am using zigbee module as transceiver. But I used 20MHz crystal while prototyping. It works fine but both the microcontroller should be powered simultaneously. (WHY ?) Then I changed the frequency to 20MHz and reburned the IC. Now it […]

The post PIC Microcontroller Transmitter & Receiver Frequency Problem appeared first on electroSome.

]]>
Using Keypad to Control the Speed and Direction of DC Motor https://electrosome.com/topic/keypad-control-speed-direction-dc-motor/ Wed, 15 Mar 2017 04:26:21 +0000 https://electrosome.com/topic/using-keypad-to-control-the-speed-and-direction-of-dc-motor/ Hi, I’m presently working on a project based on tutorials Interfacing DC Motor with PIC Microcontroller and DC Motor Speed Control using PWM. I need some help to modify the code so that a keypad can control both the speed and direction of the DC Motor. Thanks for always helping. Hammed.

The post Using Keypad to Control the Speed and Direction of DC Motor appeared first on electroSome.

]]>