Questions tagged [pic]

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

Filter by
Sorted by
Tagged with
86
votes
6answers
51k views

What is the difference between a DSP and a standard microcontroller?

I understand that a DSP is optimized for digital signal processing, but I'm not sure how that impacts to the task of choosing an IC. Almost everything I do with a microcontroller involves the ...
68
votes
11answers
9k 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? I'...
58
votes
9answers
6k views

RTOS for Embedded Systems

I have seen many articles that tell me I should be using RTOS for time management and resource management. My time has not permitted my own research, so I come to chiphacker for advice. I use low ...
48
votes
7answers
49k views

How do I measure a negative voltage with a ADC?

I am working with a PIC micro-controller with inbuilt 10bit ADC and want to measure a voltage in the range of -1 to -3Volts. I thought of using an op-amp in the inverting mode to make voltage positive ...
42
votes
7answers
23k views

Smallest AES implementation for microcontrollers?

Can anyone recommend a small, free implementation of AES-128 Rijndael for microcontrollers. Ideally, for the PIC18, though a general implementation in C would be useful. Compiling the axTLS ...
39
votes
14answers
9k views

How can I measure the RPM of a Frisbee?

I'd like to make a little device I can stick onto a Frisbee that could measure stats such as RPM/speed of the Frisbee when thrown. Would this be realistically possible? I was looking into near-field ...
34
votes
9answers
38k views

Fast and memory efficient moving average calculation

I'm looking for a time and memory efficient solution to calculate a moving average in C. I need to avoid dividing because I'm on a PIC 16 which has no dedicated division unit. At the moment, I just ...
25
votes
2answers
6k views

C coding design - function pointers?

I have a PIC18F46K22 and program it with the XC8 compiler. In the end, I'll have a system like a pc with stdin and stdout. So in ...
24
votes
7answers
40k views

Internal or external oscillator

I always use the internal oscillator that pics have as I have never found the need to run anything at higher frequency than 8 MHz (which is the fastest the pics I use tend to be able to go). Are there ...
24
votes
2answers
6k views

Firmware protection on AVR and PIC controllers

Can someone extract the HEX file that I burn in a microcontroller I provide them? If that is possible, how can someone ensure that their code is secured in embedded systems? In the case of PIC and ...
24
votes
7answers
3k views

Good book for non-beginner firmware development

I do a lot of firmware work at my job, but I'm looking for more advanced books on the topic. Things not like the basics of "what is an interrupt". I'm reading the O'Reilly book on embedded systems ...
22
votes
4answers
14k 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 ...
20
votes
5answers
14k views

PIC Microcontroller Programming on Mac OS X

How can I start PIC Microcontroller Programming on Mac OS X. Can I use an Arduino connected to my Mac has a programmer? Or do I need to buy specific programmer board and serial adapters?
19
votes
5answers
40k views

Pull-up and Pull-down Resistor Usage on Input or Output MCU Pins

Are pull-up/down resistors (whether internal or external) only needed for MCU INPUT pins? In contrast, an MCU pin configured as an OUTPUT "knows what level it's at" because it does the driving - a "...
18
votes
9answers
13k views

Ideal WiFi to Serial (or SPI) bridge?

What are some recommendations on an ideal WiFi to Serial bridge? My ideal qualities would be: Simple connectivity, SPI or Serial Reasonable fast speed, at least 1mbit/sec ideally (though probably ...
16
votes
6answers
6k views

Multitasking on PIC microcontrollers

Multitasking is important these days. I wonder how we can achieve it in microcontrollers and embedded programming. I am designing a system which is based on a PIC microcontroller. I have designed its ...
16
votes
5answers
4k views

32 kHz crystal not operating as expected

I've been trying to figure this issue out for a couple days now, reading up on typical crystal operation / configuration, and I'm at a loss. I tried searching here but didn't encounter anything ...
16
votes
5answers
13k views

If a PIC MCU provides multiple Vdd/Vss should you provide power to them all?

Take a look at this example schematic: The chip in question is the PIC18F4550 and as you can see power is provided on both sides (with a 100nF cap to smooth noise I guess). Is this strictly required ...
16
votes
7answers
7k views

Should I get the PICKit 2 or 3?

Okay, having decided to pitch myself at the PIC family (including dsPIC), I now have a question about programmers. I've been hearing a lot of bad things about the new PICKit 3, and am wondering if I ...
16
votes
4answers
13k views

Is it possible to use AVR ISP programmer to program a PIC chip?

I want to try programming a PIC chip and just see, how much different it is compared to an AVR. I've got an AVRtinyISP and would like to know, if it would be possible to use that to program a PIC chip ...
15
votes
12answers
2k views

Is it really a good-practice disable optimizations during the development and debugging phases?

I've read Programming 16-Bit PIC Microcontrollers in C, and there is this affirmation in the book: During the development and debugging phases of a project, though, it is always good practice ...
15
votes
11answers
6k views

Execute instructions from RAM in a hobbyist-friendy microcontroller

One of my projects would greatly benefit from being able to run a program that isn't stored in the microcontroller (but is instead stored in a SD card). So, I'm looking for a device that will allow ...
15
votes
6answers
8k views

Wireless communication between more than two Microchip PIC microcontrollers

I would like to create wireless communication between Microchip PICs for my simple project. It's actually an one way communication but there is one server and more than one client (about 2-4, all ...
14
votes
3answers
5k 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 ...
14
votes
1answer
8k views

How to measure pulse width of an IR signal using an 8-bit PIC?

My friend and I want to design a universal learning remote controller, like this one, for learning purposes. What we want to do basically is store and replay infrared pulses. We want to detect 36kHz, ...
14
votes
2answers
2k views

Generating PAL tv signal using a PIC

I'm trying to generate PAL tv signals using a PIC24FJ64GB002 using a similar method to the circuit described half way down this page. The only difference is that my circuit needs to run at 3v instead ...
13
votes
3answers
1k views

Non-manufacturer microcontroller selection site?

I'm looking for a site which I can input my desired micro-controller characteristics. I have found the manufacturer websites...but those will only show their micro-controllers. I.E. there's a site ...
13
votes
3answers
3k views

Attaching a LED to PIC's Rx pin

I need some way to know whether the microcontroller (PIC) is receiving (or transmitting) any data. So I thought of keeping a ...
13
votes
6answers
3k views

Starting out PIC Programming

I've been looking into doing some PIC Programming, but unlike some of the other microcontrollers available the sheer number of different chips available has caused me some confusion. It also appears ...
13
votes
2answers
3k views

Compiling code to run from external RAM

I am considering designs for a minimalist game system based on a PIC18F85J5. Part of my design is that games can be loaded from an SD card without reprogramming the chip or flashing the program memory....
12
votes
6answers
10k views

PIC keeps resetting: Am I seeing side-effects from breadboard use?

I'm using PIC18F4680 and am having problems running it form a 40 MHz external clock source or 10 MHz crystal in HSPLL mode. Using 10 MHz crystal in HS mode seems to be fine and 5 MHz crystal in HSPLL ...
12
votes
3answers
12k views

Is there a built-in serial number in PIC chip?

I have tens of PIC16 chips. I would like to retrieve some kind of unique serial number from the chip for identification purposes. I know it can be done manually. But it's tedious. Questions: Does ...
12
votes
5answers
17k views

What is the difference between Interrupt on Change and External Interrupt on PICs

What is the difference in function between IOC and EXT Interrupt on a PIC? I am currently using a PIC12F1822, and apart from the extra layer of checking you have to do with IOC (i.e. which pin caused ...
12
votes
5answers
2k views

Is an FPGA viable for such a project?

I am currently working on Super OSD - an on screen display project. http://code.google.com/p/super-osd has all the details. At the moment I'm using a dsPIC MCU to do the job. This is a very powerful ...
12
votes
4answers
6k views

Can individual pins of different port of a microcontroller be mapped to a register and their values be changed when changing the register value?

Q: Can individual pins of different port of a micro-controller be mapped to a register and their values be changed when changing the register value? Scenario: I have used up some pins from each port(...
11
votes
5answers
6k views

How does a microcontroller "remember" a program?

This is something thats really bugged me since I've graduated. We programmed PIC16f877a micrcontrollers in class but never got into the how it works, just the make it work. So let's say I write a ...
11
votes
5answers
6k views

PIC32 vs dsPIC vs ARM vs AVR, does the architecture matter when we are programming in C-language anyways? [closed]

We are currently using 32-bit PIC32 Microcontroller. It is working fine for our needs, but we are also exploring other microcontollers that can suite us better + we have other projects for which we ...
11
votes
5answers
2k views

Designing circuits with a longer lifetime

I have learned about the pic microcontroler for a period of time and have a reasonable amount of knowledge about handling digital electronics. I have worked on basic electronic projects and now I need ...
11
votes
5answers
5k views

MD5 implementation for microcontroller

Does anyone have any examples of the MD5 algorithm for a microcontroller (preferably an 8-bit one)? Our project is going to use a Microchip PIC18 series device.
11
votes
6answers
4k views

What is the purpose of a microcontroller bootloader? [duplicate]

From my understanding, for a common microcontroller (e.g. AVR, PIC), there are generally two methods of programming its flash memory. Using a programmer: In-Circuit Serial Programming (or some ...
11
votes
6answers
2k views

What is the reason my PIC16 multitasking RTOS kernel doesn't work?

I am trying to create a semi-pre-emptive (co-operative) RTOS for PIC x16 microcontrollers. In my previous question, I've learnt that accessing hardware stack pointer is not possible in these cores. I ...
11
votes
2answers
730 views

Does pin order matter at all for this RAM?

I am trying to route a pic32 chip to a 128kB SRAM chip and having a bit of a hard time getting all 17 address lines and all 8 data lines connected. I am trying to tie the first 16 address pins to ...
11
votes
3answers
2k views

How is this circuit for interfacing 20V signal with 3v3 microcontroller

I have designed the following circuit to interface a 12-20V signal to a microcontroller running on 3.3 volts. The signal is either 20V or open circuit. I want the circuit to be as resilient as ...
11
votes
3answers
30k views

How to convert volts to dB SPL

I am taking input from an electret microphone amplified using LM358 amplifier from my PIC16F877A's ADC unit. I am getting the readings in volts from the ADC which ranges from 2.5V to 5V. How can I ...
11
votes
1answer
8k views

What is slew rate for I2C?

I'm configuring I2C on a PIC18 using the built-in functions of the C18 compiler as described in section 2.4 of the documentation: ...
11
votes
1answer
2k views

PIC18F4550 C-compiler that's open-source & cross-platform?

I'm a long time AVR user. I really like that AVR-GCC works on the two main OSes I use (Mac OS X and Linux), is open-source, and is supported by Atmel. I'd like to get back into PIC programming (used ...
11
votes
1answer
4k views

dsPIC33 vs PIC32

I originally thought the advantage of PIC32 was the ability to handle more sophisticated RTOS, like ones that are linux based. Unfortunately it lacks a Memory Management Unit (MMU) and enough ram. ...
10
votes
7answers
14k views

Use of malloc in PIC

How can I use malloc() and free() functions in a PIC? I've checked the stdlib.h header and ...
10
votes
4answers
5k views

Best PIC programmer?

I would like to start using PICs in my projects and was wondering which programmer I should get. I have plenty of experience using micro-controllers (68k, avr), I also have lots of experience with ...
10
votes
6answers
8k views

How do I sample a -2 V to +2 V analog signal with a PIC microcontroller?

I am using a PIC micro with a 10bit ADC to take readings from an analog signal with a frequency less than 300 hz. However that analog signal is in the range of -2 V and +2 V. How can I condition the ...

1
2 3 4 5
53