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

0
votes
0answers
23 views

I2C Module Not Responding

I am writing a basic I2C slave as part of my code on a 20-pin 8-bit PIC16f MCU. As best as I can tell, this microcontroller has a module that watches the I2C bus and only updates my registers if there ...
2
votes
1answer
84 views

PIC Microchip Keeps Resetting

I have a PIC16LF1709 20-pin 8-bit microchip MCU. I am programming it using a PICkit 3. I am able to successfully burn a program to the chip and run it, but it always seems to reset part-way through ...
0
votes
3answers
157 views

64k x 8 RAM what exactly does it mean

I'm looking at this microcontroller because it has the protocols that I want and a really interesting price. My doubt is related with this field: RAM Size 64K x 8. What exactly does it mean? I know ...
2
votes
1answer
30 views

XC8 Interrupt function qualifier

Referring to the XC8 user manual, DS50002053E, section 2.5.10.3 the following is stated: For 8-bit compilers, change any occurrence of the interrupt qualifier e.g., from: ...
2
votes
1answer
35 views

Understanding PIC32 watchdog timer operation

I'm new to uC development and have been fooling around with the PIC series for about 6 months now. I recently started working with the PIC32 and Microchip's XC32 C++ compiler. I don't know if I have a ...
1
vote
2answers
58 views

convert Unsigned Int to array of chars (String)

EDIT: I am using this for programming a pic, so the C will be quite limited. The compiler is XC8. Following function expects me to pass a string: ...
1
vote
1answer
33 views

How to reset MCP2200 to default settings?

I designed a simple USB to UART coverter using Microchip's MCP2200 microcontroller. worked nicely for a while, but while i was trying to Update configuration using supplied config utility... the ...
2
votes
1answer
72 views

Is my lookup table with 50,000 entries too big for MCU memory (dsPIC33EP256MC506)?

I want to implement a 2-input 1-output fuzzy logic controller using lookup table on the dsPIC33EP256MC506 microcontroller. I am comparing the lookup table and actual fuzzy logic controller side by ...
1
vote
1answer
66 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
22 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
21 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
57 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
84 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
82 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
46 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
112 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
35 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
249 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
68 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
120 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
56 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
101 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
37 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
132 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
62 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
77 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
180 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
77 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
58 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
143 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
171 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
88 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
326 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
80 views

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

I'm using such code on PIC18F25K80 compiled with xc8 compiler: ...
0
votes
5answers
146 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
372 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
116 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
64 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
160 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
251 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
71 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
107 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
96 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
195 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
261 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
509 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
312 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
326 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
1k 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 ...