PIC is a brand of 8, 16, and 32 bit RISC microcontrollers manufactured by Microchip. "PIC" originally was an acronym for "Peripheral Interface Controller".
1
vote
1answer
25 views
12F675: ICSP: /MCLR internally tied to Vdd
I'm using the 8-pin 12F675 so have to be conservative with pins. I want to use ICSP while having /MCLR internally tied to Vdd so freeing up GP3. The supply will be 5V.
I will be re-programming the ...
-1
votes
1answer
40 views
How to determine infrared protocol using PIC16?
I am trying to determine the IR protocol used in a Gree room air conditioner remote control. I connected the output of the original IR receiver to pin RA5 of a PIC16F73 and used the following code to ...
0
votes
0answers
26 views
Penalty for not following exit sequence from high voltage programming mode on PIC18FxxKxx series
I have been working on a technique to recover flash memory contents from a locked PIC18F25K20 microcontroller.
To achieve this I am using an FTDI cable in bit-bang mode, and using my own code on a PC ...
0
votes
2answers
66 views
Why the output voltage of dsPIC IO ports is not constant?
I expect output voltage of dsPIC pin should be 3.3V, and this seems to be true when the output pin is connected to high resistance.
However, when I connect to low resistance, the voltage of output ...
5
votes
3answers
290 views
Fastest way to toggle a bit in ASM
What's the fastest way to toggle a bit1 in MPASM for the 14-bit enhanced instruction set? (I'm working with a PIC16F1829)
The code has to be standalone - I mean that it can be called on any moment, ...
1
vote
1answer
49 views
How to get 10bit data of ADC using SPI protocol
I am doing Single master multiple slave implementation.
Master - PIC18F4550
Slave - PIC18F4520
A potentiometer is connected to the Slave. Slave will convert the Potentiometer value to digital and ...
3
votes
1answer
49 views
Figuring out the functions of PIC numbers in a data file
I'm using Bumblebee software to interface my Wisp648 PIC programmer. According to the list of supported files for the Wisp, I should be able to program a PIC16F1829. However, that chip isn't supported ...
-2
votes
1answer
66 views
Vibrating bracelet [closed]
I am not a technical person. I want to design a vibrating unit that can be inserted into a bracelet which will vibrate x times per day randomly. I would like to be able to alter x on an ad hoc basis. ...
0
votes
1answer
45 views
Implementing interrupts on a PIC16
We are trying to build an RC interface to transform a PPM signal from the RC (remote control) into a PWM signal for motor controls. The idea is to build a 2-channel robot that goes forward % back, ...
2
votes
1answer
64 views
MPLAB assembly issue code jumps
I am having some issues with what I think to be good code. This is for a uni assignment but this is not the code I'm submitting. This is a test file to understand how it all works. Some of this code ...
4
votes
0answers
125 views
Placement/routing of decoupling cap straddling oscillator guard ring on dsPIC
Changes in my design are forcing me to replace my 44-pin dsPIC33FFJ16MC304 with a 64-pin (same package size, finer pin pitch) dsPIC33FJ64MC506. In the datasheets for both chips, Microchip recommends a ...
5
votes
3answers
173 views
five month countdown timer circuit?
I'm a beginner in electronics, so I just have an idea in my head and don't know how to actually make it. I want to make a countdown circuit, for an event in next 5 month. The display format is like ...
3
votes
3answers
85 views
Energy efficient one button on/off with extra function
(Old) cellphones have a button to turn it on (when off), end a call (when on, short press) or turn it off (when on, long press).
I need something similar for a microcontroller. The device is ...
-3
votes
0answers
54 views
How to Start with Pic18f controller and ENC28J60 configuration [closed]
I am a newbie to ethernet control operation using pic18f controller and dont know how to configure my Olimex ENC28J60-H Board with PIC18F controller using SPI communication. However i have written ...
-2
votes
0answers
42 views
Digital Audio Filter: Delay, Echo, and Pitch Conversion [closed]
I'm using dsPIC Starter Kit (DM330011).
And I want to put those three stuff as a main functions.
Delay: when you speak on Microphone to record it and play it through speakers, hear your voice in 2 ...
2
votes
2answers
107 views
Are additional smoothing capacitors required off of a voltage regulator
This is a subset of a circuit I am building to run motors off a PIC 16F884:
simulate this circuit – Schematic created using CircuitLab
I noticed last night as I was drawing up my ...
3
votes
1answer
81 views
PIC interrupt based soft UART timing trouble
I've tried to implement a software UART on a PIC18F452 using TIMER0 interrupts and I can't get the timing working.
I'm using MPLAB ASM for compilation and the PICkit2 for programming.
...
1
vote
1answer
42 views
PIC16: Out of Data Space - Make use all available banks
I'm using a Microchip PIC16F1825 with the XC8 (v1.12) compiler and defining some arrays (size between 16 and 64 bytes). I was able to declare them (linker output below). However, as soon as I try to ...
0
votes
0answers
42 views
PIC32 PWM minimal example
I am having trouble getting a simple PWM output to work at all on a PIC32MX775F512H. Looking online, this seems to be all I need to get something working:
...
4
votes
3answers
109 views
Failed to get Device ID - PICkit 3 & PIC16F684-ICD & AC16205
Like it is already mentioned in the title I have question regarding this dev stack:
MPLAB X IDE v1.80
PICkit 3
PIC16F684-ICD (datasheet)
AC16205
There is image of how things are connected (I don't ...
0
votes
1answer
55 views
Any Ideas for Understand one of the 3 phases has powered
I want to ask you about a situation which i couldnt find the exact solution or better way to do the job.
The situation is i have 3 phase (380V) induction motor and one of the phases to the motor had a ...
6
votes
1answer
282 views
Microcontrollers with extreme high temperature range
I am looking for components which works at high temperature. Especially I am looking for microcontrollers which works at 180 °C to 200 °C. I am designing downhole electronics for oil and gas ...
2
votes
1answer
83 views
Servo position with no pulse
I am using a PIC 16F884 to run 2 motors and 2 servos. The motors are using the onboard PWM module, and I am bit banging PWM for the servos on Timer 2.
With only one servo being controlled, it ...
-1
votes
0answers
80 views
driving automotive relay
I am driving an automotive relay using a bc337 which is in turn driven by a logic 1 from a pic. The problem I have is that every time I switch the transistor off, the load side of the relay stays on, ...
2
votes
0answers
59 views
How to use the CTMU (Charge Time Measurement Unit) for a capacitive touch sensor on PIC24F?
I'm trying to implement a basic touch sensor using the CTMU on my PIC24F04KA200. Reading the datasheet and application notes provided by Microchip I was expecting this to be an easy endeavor. In this ...
0
votes
2answers
314 views
Creating a lookup table in a microcontroller using in C
How can I create a lookup table in a microcontroller using C? I have one input and one output and want to implement a lookup table in C.
1
vote
0answers
123 views
MPLAB XC8 vs MikroC problem
I have been trying to write a program for LCD on PIC18f452. I found a library and worked on it and MPLAB XC8 compiled it successfully. I tested it in ISIS and it ...
1
vote
1answer
43 views
PWM npn sinking signal
I have a stepper motor(with STR2 Step Motor Drive) which needs npn sinking signal to operate. dsPIC33EP512mu810 is capable of generating high resolution pwm. However, the PWM signal can only turn on a ...
40
votes
9answers
4k views
How can anyone use a microcontroller which has only 384 bytes of program memory?
For instance a PIC10F200T
Virtually any code you write will be larger than that, unless it is a single purpose chip. Is there any way to load more program memory from external storage or something? ...
0
votes
1answer
57 views
range switching problem in auto range multimeter using PIC microcontroller
I am designing a auto range multimeter with PIC microcontroller and added extra circuitry for attenuating the signal uu to 3.3V for ADC of PIC controller. The problem I am having is in the auto range ...
1
vote
1answer
48 views
Difference between SMPEND and SMPMID
I'm interfacing an SPI chip with a PIC18 device, programmed with a C program compiled with the XC8 compiler, using libraries from plib.h. In the docs, I read:
...
0
votes
3answers
177 views
How to learn dsPIC UART program based on PIC USART experience?
I've learned USART of PIC16F883, and I want to learn UART of dsPIC33FJ64MC802.(Actually I need to learn dsPIC, but I learned PIC16F883 first since I thought it's easier to learn.)
Here's my circuit ...
2
votes
2answers
137 views
PIC18 USART Interrupt for reception, doesn't trigger
I have set up the Enhanced USART module for a PIC18F4331 and have been trying to do a loop test. I am using MPLABX, programming in XC8, using Pickit3 for debugging and monitoring serial pins with an ...
0
votes
0answers
53 views
Implementing USB On PIC24
We want to implement USB on our PIC24 based embedded system.
Hardware: All done
Firmware: USB part is currently Non-existent
My role: Make it all work
Questions: The protocols are very complex
...
0
votes
1answer
59 views
PIC32 Issue with using JTAG Pins as Analog Inputs
I'm trying to read in a value using a few analog pins on a PIC32 (MX775F512H), including RB12-- part of the JTAG pins on the device. The device the board is reading from works great, but the board ...
2
votes
2answers
279 views
How can I display a scoreboard on stage for a play?
I am part of the team who makes the scenery for a theatrical play at school. What is needed to be done is to have a scoreboard in the middle of the room, that one will control from backstage. The ...
-2
votes
1answer
69 views
I2C protocol for PIC18F45K20 with C18 compiler
I'm currently trying to receive data from the 2-wire serial interface of an image sensor with a PIC18F45K20 written with C18 in MPLAB X IDE v. 1.41. How do I initialize the I2C protocol and how do I ...
2
votes
2answers
144 views
ExternalDifferential ADC Values for PIC
I have a temperature sensor design that I'm using as a reference. It takes 2 RTD sensors and reads their values with a Dual Channel 16-bit Differential ADC. The ADC interfaces through the SPI bus.
...
2
votes
2answers
109 views
How can I control 8 LEDs with a timing delay with only one microcontroller (PIC12) written in Assembly?
I can have 5 I/O pins enabled. I'm just confused on how to control them individually.
6
votes
3answers
258 views
Switching from PIC to AVR [closed]
I have worked with PIC16 and PIC18s for over three years now and would like to get to know AVR as well. I have no specific project in mind, but would like to try around with the different ...
-2
votes
1answer
68 views
How to search date wise in flash memory using microcontroller?
I am developing a data logger in which I am using 8 MB of flash memory to store the sensor data with date and time. I am using RF interface to transfer that data to PC. I am planning to have PC ...
2
votes
1answer
88 views
Bit Banging UART
My full code is located here.
Basically, I'm transmitting to an Arduino, and I'm not receiving the correct value (you'll notice I'm trying to send d'22'). Here's the method where I actually bit bang ...
2
votes
2answers
82 views
Char array at an int in C18
In Jal, it's possible to do something like this:
var word the_var = 0x1234
var byte the_array[2] at the_var;
Now you can easily access the bytes of the word ...
0
votes
1answer
99 views
How to use the PIC16F628A's PORTA,4-7 as inputs?
I'm working on a countdown timer and I want to use the MSN of PortA for my switches.
I'm using MPLAB. I can't use C to program the PIC because the collage taught us to program in decimal, and they ...
1
vote
2answers
98 views
Receive bytes from UART camera
I am using a dsPIC33E MUC to interface an UART camera(VGA) at 115.2Kbps. The purpose is to save an image to a SD card.
The program I wrote works well except that it's inside a loop checking if the ...
5
votes
1answer
173 views
Serial Communication over 1 Pin?
Okay guys, I'm in a bit of a pickle here. I have the following circuit:
As you can see, pin 3 is my only output. I've actually already had this board printed, so there's not much room for ...
6
votes
3answers
140 views
How to calculate day of the week for RTC?
I am using MCP7940 RTC from microchip it requires to enter the day of the week as part of updating RTC with date. So how should I calculate day of the week based on the date provided by the user ?
0
votes
2answers
71 views
How to Synchronize two RTC module one internal and other external?
I am developing a data logger based on PIC controller. The PIC has internal RTC but does not have pins for connecting battery so I am using pic's internal RTC to generate interrupt every second and ...
2
votes
0answers
85 views
SPI Read returns only 0 in slave when I hook up SS to INT
I am coding a SPI slave using a PIC16F877A in CCS C and need to be aware when the SS line (pin 7) goes from high (idle) to low (active) as information from the master is framed as a stream of bytes ...
5
votes
3answers
285 views
Ethernet connector and transformers
I'm working on an Ethernet connection for a PIC18F4620 with the ENC28J60. I found a useful article here, with a schematic:
I see I need transformers between the RJ45 connector and the Ethernet ...