Microchip Technology is an IC manufacturer, best known for its extensive range of PIC microcontrollers, but also memory and analog function ICs. The term "microchip" is a legacy term for integrated circuits, not just ones designed by Microchip Technologies. The company came into existence and took ...

learn more… | top users | synonyms

1
vote
1answer
44 views

PIC 16F887 and the mysterious System Clock Select bit (SCS)

I'm using a PIC 16F887 and I'd like to use the internal oscillator HFINTOSC. To accomplish this, I set the IRCF 2:0 bits to 110 (4Mhz prescaler) and the FOSC 2:0 config bits to INTOSC. Now I should ...
0
votes
1answer
18 views

VDD Error with 18F24J10 after turning off XINST

I am using a PICKit2, pk2cmd, and SDCC to program a PIC18F24J10. In the course of troubleshooting some problems I was having with my code, I upgraded to SDCC 3.4.0. Compiling with the latest version ...
0
votes
0answers
18 views

EEPROM 24LC16B pickit2

I'm having difficulties getting my pickit2 (I have a pickit3 as well but it does the same) to work mplab v8.92 to program the 24lc16b. on the microchip documentation it says it should work but when I ...
-2
votes
1answer
51 views

pic debugging vs programming

I'm using a Microchip ICD 3 to connect to my PIC chip and read the memory. When I connect the ICD 3 as a "programmer" and then select "read" (from the "programmer" menu) and then "View-->"File ...
0
votes
1answer
82 views

2.2K Resistors on Microchip Data Input Lines [duplicate]

I've just been dabbling for the first time into circuit design with microchips and I noticed a lot of designs put 2.2K or 4.7K resistors on some input lines. I get that this is to limit the ...
0
votes
0answers
63 views

How to use printf(), scanf(), gets() etc with *both* USART's?

I'm using a PIC18F26K22. It has two USARTS. The compiler provides a printf() function, and the user provides the underlying getch() and putch() functions. However, using Microchip Code Configurator, ...
0
votes
1answer
39 views

can't get PORTB value in pic18f2550

I'm trying to send The PORTB to the serial port and receiving the data on pickit2 UART mode.. ...
2
votes
1answer
94 views

Inserting compile date/time into the code in XC8

I'm in the process of writing code for a real time clock, and I want to compile the code with constants for the date/time of compilation to burn onto the clock immediately upon programming. I believe ...
0
votes
1answer
33 views

How do implement my pic24 onto a pcb board?

I have a microstick development board for the pic24, shown here. The microstick contains many other components and parts other than the pic24 that are used for voltage regulating, debuggers, etc. In ...
0
votes
3answers
215 views

USB HID device not detected

I'm making a USB HID device using PIC18F2550 using 20 MHz crystal input and using the MikroC PRO C compiler for PIC. These are my configuration settings: ...
1
vote
1answer
59 views

PIC Serial Programmer

I am new to PIC. I have found the following circuit: But the problem is that I don't have a similat USB to Serial Converter. I use the Arduino as the converter, on which I can't find the "RTS", ...
0
votes
1answer
102 views

What's correct way to toggle a single bit and a whole register in microchip C programming?

I'm trying to write a code where when a push button is pressed, a whole PORT is toggled. So I got a push button at PORT E in pin 0, and 8 leds on PORTD, I also got a debugging led on PORT E pin 1. ...
1
vote
0answers
41 views

PIC32 Input Capture Module

I'm trying to use the input capture module on a PIC32MX250F128B to measure the frequency of a square wave. The results I'm getting are both inconsistent and incorrect. All I'm trying to do here is ...
0
votes
1answer
61 views

Unable to use ICD3 with CCS C Compiler

I have recently bought ICD3 since I think that being able to debug a microcontroller program requires that we be able to see what is happening inside it. I really want to learn this stuff :) I have a ...
0
votes
0answers
34 views

Why isn't my circuit able to connect to the PICKit 3?

I am trying to interface with a Microchip PIC32MX695F512_H through a PICKit 3. Although all seemed well at first, I quickly found out that it would not connect. I am using the 3.3 volt setting on an ...
0
votes
0answers
102 views

Using Pic18F timer for external pulse count assembly code

I am new to using a Pic18f2550 micro-controller. I have been searching for examples on how to setup and use the 16 bit timer Tmr1 and Tmr2 to count the number of pulses from an external motor opto. ...
0
votes
1answer
50 views

Using PSMC instead of CCP

Hi I am building a motor controller and I decided to use PSMC instead of CCP to create my PWM, my decision was based on the fact that I dont have enough CCP ports on my pic 16f1788 for the project. I ...
1
vote
1answer
59 views

How can I make a 1K X 16 ROM chip with eight 256 X 8 ROM chips with an enable input and a decoder?

I came across this, which I'm guessing is correct, but I do not understand the shortcuts made here. What are the 8's with slashes through them? Do those represent 8 inputs and 8 outputs? And can ...
1
vote
0answers
128 views

Pic to Pic Communication with 434mhz wireless module?

I want to transmit Data From one Pic18f2550 to Another using a cheap 434mhz wireless module. but its not working at all. Following are the circuits for Tx and Rx respectively. the code for Tx ...
-2
votes
3answers
74 views

Getting started with Atmel AVR [closed]

i would love to start learning AVR programing for Atmel's chips. Currently i'm using only Arduinos with their standard API and im really happy with that, however i would like to learn more and go ...
-1
votes
2answers
51 views

PIC18f45J50 2nd Serial port?

I am working on a GPS tracker Project where i need to interface with a GPS module and a UMTS module for 3g connectivity. with this i need 2 serial ports on a single microcontroller. For this ...
4
votes
3answers
103 views

interrupt using Timer0 on PIC18f

Im looking for a little help and advice on my code. Im using C18 in the MPLab environment, PIC18f4520 with Fosc @ 4MHz, and usnig timer0 in 16 bit mode to count to overflow, set the overflow bit and ...
4
votes
1answer
169 views

Why are the resistors all different?

In my upcoming project, I am working with a Microcontroller called the Microchip PIC32MX695F512H and a Wifi Module called the Microchip MRF24WB0MA. Since I am new to electrical engineering, I've ...
2
votes
1answer
76 views

Using different putch() function in a library

I'm writing a C library for PIC18 microcontrollers that will communicate with the ESP8266 chip over the UART bus. I would like to use the printf() function to send ...
1
vote
1answer
239 views

PIC12F683 or PIC16F688 assembly or C blinking LED example with XC8 compiler, MPASM or gputils

Hello I am new to PIC programming and I finally have got my dev environment working, I downloaded the XC8 compiler from microchip and also as backup I downloaded the gputils assembler. I have not been ...
1
vote
1answer
72 views

PIC18F25K80 4 > 20 returns true. How is this possible?

I'm using such code on PIC18F25K80 compiled with xc8 compiler: ...
0
votes
5answers
122 views

Vias in footprint with no thermal relief?

I'm making a small board for a PIC18F26K22 microcontroller and the provided footprint in Microchip's Altium Vault is shown below: I'm assuming the polygon under the IC is a GND pad, but am not 100% ...
4
votes
1answer
294 views

What are the advantages of single-supply (low voltage) programming over high voltage programming?

I'm a student designing a simple board for a PIC18 microcontroller and am trying to determine how the ICSP circuit should be designed. The datasheet explains how there are two different programming ...
0
votes
1answer
91 views

need help making a c program that reads flow meter

For the past week, i've just started my first ever project to make a C program for a PIC16F877A under MikroC, where I would get pulses in from the flow meter and calculate the flow rate, then output ...
1
vote
3answers
60 views

Can I share source code/software from Microchip through my website?

I've done some projects including bootloader for PIC microcontrollers. But all these are done by modifying official microchip codes. Also want to share official drivers and softwares. I want to share ...
1
vote
2answers
151 views

Beginner: What is a microchip really?

I've looked around on the web a bit but it's the same jumbled up garbage. I'm convinced most of the articles are by people who've only heard what a microchip is but who don't actually know. My ...
2
votes
1answer
219 views

Can an RMII phy be connected directly to another RMII phy

I have some Microchip (SMSC) LAN9303 Ethernet switches in my system. The LAN9303 is a 3-port switch which has 2 connections for twisted pair cables and one MII connection. The switch chips are some ...
0
votes
1answer
70 views

What other problems can be caused when using the JMP instruction to navigate through subroutines instead of using the instruction CALL/RETURN?

I've been creating a report on why the JUMP instruction shouldn't be used in the piece of code above and instead CALL/RETURN instructions should be used to navigate through the subroutines. I ...
-4
votes
1answer
103 views

Is it technically feasible to design a microchip that won't fail foreign characters? [closed]

I used to work as web developer and did the same part of the project for several decades: Making sure that our Scandinavian characters åäöÅÄÖ... will work. It was feasible and it did work, basically ...
0
votes
2answers
92 views

Using TMR0 to time an event

i'm trying to use TMR0 on a PIC18F2420 to time the opening of a device and display the percentage it is opened. the issue i'm having is that it has frozen up pretty much all other operations. i'm not ...
1
vote
2answers
142 views

Specific ADC input not working on Microchip PIC PIC24FJ128GA202, other inputs work fine

I am trying to get an analog input working on my microcontroller. I am using the PIC PIC24FJ128GA204. The problem is that a specific input is not working, while other do work. I want pin 26, ...
1
vote
2answers
197 views

Using 10 bit ADC for only 8 bits on a PIC MCU

I have a PIC16f1824, which has a 10bit built-in ADC, but I only want 8 bit precision. I don't just want an 8 bit value, but actual 8 bit conversion i.e. higher samples per second at the cost of bits. ...
2
votes
2answers
396 views

MPLAB X IDE problem with PIC Programmer

I have a programmer and it works fine with PICKit2v2. As you see in the below images, I read my PIC16F877A memory and write to it successfully : But the problem appears when I want to use my ...
1
vote
2answers
251 views

XC8 - constant ROM allocation for PIC12F1501

I have troubles with const memory allocation with XC8. I try to do this: const unsigned char patterns[12] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; ...
1
vote
2answers
287 views

What are the UART voltage levels for the RN4020?

I've recently bought an RN4020 BLE module, but I'm having figuring out how to make it work. In the datasheet some pins are listed as 1.65V input, 1.35V out, while ...
0
votes
0answers
40 views

Can I link Ethernet chips on PCB? [duplicate]

I read up on the Raspberry Pi Compute unit and wanted to link a hand full for networking. Unfortunately, they do not come with native Ethernet, but USB. So I was thinking of linking each compute ...
1
vote
3answers
975 views

Send integer values through serial communication in PIC to PIC?

I need to pass integer values from one PIC to another through serial port for char I can use the following code ...
-3
votes
1answer
631 views

Calculate the UART Baud Rate register for PIC devices

How do I calculate the UART configuration register values for a PIC 24F device, based on a desired Baud rate? Currently the UART module has 2 values that affect the Baud rate, BRG (16-bit register) ...
1
vote
0answers
90 views

Microchip 9808 temperature sensor - Incorrect calculation result

I am using a Microchip MCP9808 I2C temperature sensor (https://learn.adafruit.com/adafruit-mcp9808-precision-i2c-temperature-sensor-guide/overview). I'm having problems being able to calculate the ...
1
vote
1answer
110 views

PIC24 PLL module is always out of lock

I have been working on a PIC24FJ128GA310 development board for for some time now and recently got a PCB made. If I try to move my code into the new board all timing related math and functions are ...
1
vote
1answer
129 views

PIC18 weird variable assignment bug

I'm debugging a code for the Microchip PIC18F4520 using the PROTEUS ISIS. The code was compiled with the C18 compiler. There is a very crazy bug in the code that I don't know whether it is my fault or ...
0
votes
2answers
308 views

Control multiple servos using pic18f microcontroller?

I want multiple servos to be controlled through pic18f4550 microcontroller. I know for a single servo I can use the following code. ...
0
votes
2answers
63 views

Changing control values for PIC remotely?

I'm using a PIC to take information from a sensor and transmit it via xbee to control a relay, as well as through a gateway to an online program. Forgive the noobie question here (I've searched and ...
1
vote
2answers
94 views

Is it wrong to write HIGH to a pin used as an open collector?

I'm a software engineer playing with PICs and have an old PS/2 mouse that I am using (successfully), which has CLK and DATA connections as open collectors. So I have configured the internal pullups ...
1
vote
2answers
347 views

PIC32 Peripheral Pin Select for Digital Output

I'm using a PIC32MX250F128B for a project to drive several digital outputs; I need to control the digital output for about 13-14 pins. (using the code below). These pins work: RA0, RA1, RB0, RB1, ...