PIC is a brand of 8, 16, and 32 bit RISC microcontrollers manufactured by Microchip. "PIC" originally was an acronym for "Peripheral Interface Controller".

learn more… | top users | synonyms (8)

0
votes
1answer
46 views

Pic 18F452 / push button

I want to write program with " MPLAB IDE v8.50>>Pic18f452 " by 1) low level pulse & 2)Rising edge . but, how?(without interupt & micro C,maybe!) I wrote this program with falling edge. Thanks ...
0
votes
2answers
71 views

A/D conversion loop infinitly

I'm quit new one PIC microcontroller, and i'm stuck with a new problem. I was using the A/D converter of my PIC18F46j50 to catch 4 push buttons on 1 PIN (RB2), and it worked well. But since I ...
0
votes
0answers
53 views

Oscillator Error and PIC24F stopped working

I have a 30MHz Crystal Oscillator to clock a PIC24FJ128GC010 Controller. I am programming in MPLAB X. My idea is to generate a pulse on one of the I/O pin toggling. But unfortunately, I cannot do so. ...
-1
votes
1answer
75 views
1
vote
0answers
58 views

Send a file to an SD card over SPI

I am using a pic18f4620 and an XC8 compiler. I am trying to create a file and send it to the SD card. I am using the MDD library from the MLA Legacy. My main is: ...
0
votes
2answers
66 views

Choice of bypass capacitors for PIC18F4455

Does anyone know how many and what values of bypass capacitors I need for a PIC18F4455? The datasheet does not provide any information on this and I don't want to use more than what I strictly need, ...
0
votes
3answers
83 views

Breaking a 16-bit long int to write into eeprom?

I am writing data to eeprom AT24C16 using PIC microcontroller pic18f4520. Every address of this eeprom can hold 8-bits while I am using long int's to store data that are 16-bit in size. How to break ...
4
votes
4answers
929 views

Checking when a car horn is pressed?

I want to detect when a car horn is pressed. The only way I can detect it currently is using the voltage on its line. When the car is turned on, there is always 12V being supplied to the horn through ...
6
votes
5answers
1k views

What do I need to put my code onto a microcontroller?

I learned about coding a controller, but never actually put the code on the physical device. I am trying to figure out what I need to order to start developing a basic embedded system. For example, ...
-7
votes
2answers
57 views

Simple and cheap PIC controller with two I2C buses [on hold]

I'm looking for a simple and cheap PIC controller (or alternative) that has two independent I2C buses. So far all my Google search has failed. The existence has been been mentioned in an other post ...
0
votes
0answers
31 views

Check status of a manually actuated valve

I am currently developing a cheap water leak detection system using a PIC. I need to be able to know if there's a leak in a water tank, and ensure that this leak is not intentionally caused (i.e ...
0
votes
0answers
23 views

FSIO.c:8344: error: (1089) recursive function call to “_WriteFAT”

I am using a PIC18F25K80 and an XC8 compiler. I am currently trying to use the MDD library from the MLA legacy version (http://www.microchip.com/pagehandler/en-us/devtools/mla/legacy-mla.html). It was ...
0
votes
1answer
42 views

_asm TBLRDPOSTINC _endasm,

I am using a PIC18f25K80 and an XC8 compiler. I have included the files from the MDD library. However, after compiling I get the following in the "FSIO.c" file: ...
1
vote
1answer
52 views

Send alert tone to pc from microcontroller via serial communication

I am learning microcontroller for couple of weeks. Yesterday, I have learned how to establish serial communication between PC and microcontroller. I can send texts to pc's hyperterminal from mcu and ...
2
votes
2answers
111 views

Timer PIC16 not working.. is it my code?

I'm new here as an OP, but I have been visiting this site for years. This time, just looking at other problems hasn't helped me. Hence, I sign up and just ask! I'm creating a countdown timer with 30 ...
1
vote
1answer
58 views

XBee Synchronization

I am using 64 XBee modules (XB24-Z7UIT-004) as sensors and I am trying to synchronize all the modules to execute a command all at the same time. What happens is that it takes about 500ms to send the ...
0
votes
0answers
30 views

FatFs compilation error

I am using a PIC18F25K80 microprocessor and an MPLAB X XC8 compiler. I am trying to crate a new file so I can store data in an SD card. I am using the "FatFs - Generic FAT File System Module" (can be ...
1
vote
3answers
50 views

Protecting complementary MOSFET switch

I have a complementary MOSFET switch that turns ON/OFF a DC voltage offset of 2.25 V that is provided to another circuit. The switch is controlled by a digital signal, Vctrl, from a PIC18. Simulation ...
0
votes
2answers
78 views

Send Pixels From MCU to HDMI

I would like to send pixel data from a MCU (PIC24 or PIC32) to a LCD computer monitor via HDMI. Ideally, I would only update frames as needed and not have to transmit them continually. Can it be ...
0
votes
3answers
73 views

RAM and stack memory

I'd like to know what is the difference between RAM ( data memory ) and the stack memory in PIC micro controllers if both of them is volatile( not sure about stack ) and the stack is temporary memory? ...
17
votes
4answers
1k views

How to clean up a noisy signal?

I'm controlling a 4-pin PWM PC fan from a PIC16F684 with the fan speed driven from an ADC reading of a proximity sensor. This all works ok. I wasn't originally planning to use the tachometer output ...
0
votes
0answers
51 views

SD card SPI interface for PIC18F25k80

I am using a PIC18f25k80 microprocessor and I want to transfer data on an SD card over SPI. The compiler I am using is MPLAB X XC8. Could you please provide an example of how I can initialise the SD ...
-1
votes
0answers
25 views

is pic18f46k80 supported by pickit3?

if have pic18f46k80 and i am trying to program it with pickit3 but the program keeps show me that the device is not found. it tried to select the device manually but I didn't find the pic in the list. ...
1
vote
2answers
58 views

Searching for a programmable microcontroller (USB & LED dimming)

My apologies for the lack of given information or my knowledge in this subject. I haven't done much electronic-related before (I know how to use basic IC's such as the 555's, 4017's, etc), but I've ...
3
votes
3answers
142 views

Using I2C and SPI communication on the same same clock and data lines

I am using a PIC18F25K80 with multiple slave devices. All of them uses I2C except one. What i want to know is that can i first use I2C with the devives that uses I2C and then close I2C, change clock ...
-1
votes
1answer
35 views

PIC18F25K80 and WiFi [closed]

I want to send information over wifi from my PIC to PC. I need some basic tutorials or guides on this topic. I have searched online but there is no tutorial that starts from the basic. Can anyone ...
-1
votes
2answers
47 views

How do I do real-time streaming of video from a PIC32 with camera/Wifi module onto Amazon S3?

I'm looking at RTP/SIP stacks but don't know where to start. What are Live555, MPEG DASH, oRTP, and ffmpeg? Can they run on a PIC? I'm thinking 720p at 15 or 30 ips. I have code working to upload ...
0
votes
0answers
35 views

PIC 16f877a ADC malfunction

I have to acquire two voltage values from two different locations so I used two consecutive channels a1 and a2 using the following code: ...
0
votes
1answer
50 views

I2C-to-SPI bridge and SD card

I am using a PIC18F25k80 microprocessor, which is communicating by using I2C protocol with peripheral ICs. After collecting the data from the ICs I want to store them in an SD card. However for the SD ...
0
votes
0answers
36 views

MPLAB X CONFIG2 Error

While compiling my SPI Test code, I am getting a following error. ...
-1
votes
1answer
28 views

MPLAB X IDE : Cannot see console output using Pic24F?

How to see the console output using command "printf" ??? example : if i want to display "Hello World" on output screen. How to display it ?? I am using Pic24F on MPLAB X IDE v3.00 Thanks in advance ...
1
vote
0answers
53 views

FatFs issue with f_write and f_sync

I'm trying to set up a PIC18F67K22 to log data to an SD card, but I am having some trouble getting FatFs working properly. I implemented some low level code following the diskio.c API that is ...
0
votes
1answer
93 views

What is this SMD component

Just out of curiosity I am trying to find out. What type of component is the green flat one in the picture?
2
votes
0answers
80 views

SPI / SD Card communication issues

I am working with a PIC18F67K22 and am seeing some bizarre things in the SPI data stream. I am trying to interact with a FAT32 partition using FatFs and a custom built diskio.c file. I am able to ...
0
votes
0answers
71 views

PIC18F: Flash Write/Read working on Simulator but not on PIC18F46K80

I have been trying to read/write and erase flash memory of PIC18F46K80. I have followed the procedure specified in the datasheet. The below code works on the simulator of MPLABX at the address ...
0
votes
3answers
54 views

PIC MCU to PC Serial Communication Problem

I was just trying to send continuous stream of letter 'G' from my PIC MCU (PIC18F452) to my laptop. Here is my assembly code that i am using : ...
6
votes
1answer
104 views

Can I generate random numbers on PIC from INTOSC vs crystal?

Generating truly random numbers on a microcontroller is a known difficult task. One way is to run two different clocks, and measure the clock drift between them. The PIC16F1783 which I'm using does ...
0
votes
1answer
42 views

PIC 12F508 Logic Level Calculations

I am using a PIC 12F508 for a project and just want to make sure I understand the specifications in the datasheet for a logic low and a logic high. Here's the datasheet for reference. The specs I'm ...
1
vote
0answers
32 views

How to connect USB mini-b pins on a PCB?

I want to design a PCB which contains either PIC24FJ128GA010 or PIC24fj256gb110 (still haven't decided). Now the second contains a USB 2.0 on the go and the first one doesn't. I want to power the ...
6
votes
1answer
156 views

Why does my PWM amplitude vary with duty cycle?

I'm controlling a 4-pin PWM fan from a 5V PIC and before going too far I'll say that everything is working fine but I'm just not understanding what I'm seeing on my scope. The fan has a 12V supply ...
0
votes
0answers
32 views

PIC 18F23k20 as LCD driver

I was asked to devise an LCD driver using a PIC18f. Here's some information on what I'm using. PIC 18f23k20 LCD-S401M16KR-81359 It's a 1/3 bias 4 common multiplexed 7-segment display. I have the ...
0
votes
2answers
42 views

PIC24f Get Clock Signal for external Device?

I have an external memory device with pin configuration: Data Input Data Output Connection System CLock DC 24V Ground Here is the link I need to design a code to communicate with this device. I ...
0
votes
0answers
46 views

Write serial number into a PIC24 series.

I want to write a serial number into a PIC microcontroller using SQTP (Microchip's Integrated Programmer Environment). They mentioned some supported programming tools Supported Programming Tools ...
0
votes
1answer
39 views

h drive for stepper motor

I am having a problem trying to find the right h-drive for my nema stepper motor. It's rated for 3.08V and 2.8amps. Unfortunately, I can't find an H-drive that will accommodate. They are either too ...
3
votes
1answer
136 views

Memory deallocation exception when using free()

I am currently working on a project that requires some allocation and deallocation of large arrays on a PIC32MX775. I have a dedicated heap memory size of 1500 bytes, which should be more than ...
1
vote
1answer
162 views

How to write 4 bytes continuous data without any SCK delay through SPI with Pic18f45k20

In pic18f45k20, I have to write 4byte data at once without any setup SCK delay through SPI. Is there any way to cancel the SCK delay while sending 4 bytes together?(like Assembly)I am using MPLAB-XC8 ...
2
votes
1answer
53 views

PIC16 I2C interrupt does not occur if serial port enabled

I'm using a PIC16F1825 mid range PIC and I've used it with a UART and SPI for a good while without issues. When I added code to handle I2C (instead of SPI - it's either one or the other on this PIC) I ...
0
votes
2answers
44 views

ICSP design problem on PIC16F628A

I just added the ICSP port on this schematic here however, when the programmer powers the circuit from the ICSP (pin1 +5V, pin6 GND) it also polarizes the relay and the bs170. If for some reason ...
0
votes
1answer
39 views

Burn a HEX file into Brenner8 using linux

I have got a version of Brenner8 called AEI when I try to burn my HEX file into PIC16f877a using command usburn -w -s40 -F16 -Ifilename.X.production.hex I got ...