Questions tagged [microchip]

Questions related to the microchip PIC family of microcontrollers. Where possible please specify the specific microcontroller.

Questions related to the microchip PIC family of microcontrollers. Where possible please specify the specific microcontroller.

696 questions
0
votes
1 answer

A way to change mcu program from the outside

We need to change a controller code from the out side as they do with industrial MCU . So that you have an mcu,with a program on it, and someone can program some "words" to it, that will determine how it works. So for example you can program an mcu…
Curnelious
  • 1
  • 16
  • 76
  • 150
0
votes
1 answer

Setting initial value for timer -register name

I have a timer in XC8 MPlab with PIC16F690 that is running great. I want to change its initial value. I could not find how to set a value into its register so it starts from that value. I'm looking for the syntax for that register to fill it with…
Curnelious
  • 1
  • 16
  • 76
  • 150
0
votes
2 answers

I can't show time from DS1307 with PIC16f88

I write program so long code for alarm clock. I use CCS compile which use ROM =80% RAM=8%-51% . I simulate my program in proteus it work. but when I use in real hardware it show time = 00:00:80 and not run second. My code read time from DS1307. I…
user572575
  • 1,009
  • 3
  • 25
  • 45
0
votes
2 answers

How to get UART to work in PIC32 with correct clock frequency and baud rate?

I am working on UART with pic32mx5xx. All I need is to send a message from pic to terminal (Putty), but it is not working as I would get invalid characters appearing. The baud rate is set to 19200, how do I calculate the clock frequency? Is it true…
Ammar
  • 1,203
  • 5
  • 27
  • 64
0
votes
2 answers

Timer is not counting on sleep mode with PIC18F?

I have PIC18F87J11 with MPLAB C18. I am trying to limit the consumption of battery by the device by forcing it to go to sleep. I noticed upon entering the sleep mode, timer0 stops counting up any further until awaken. Also the only method I know to…
Ammar
  • 1,203
  • 5
  • 27
  • 64
0
votes
2 answers

Can't send message from Coordinator to end device? [MiWi Pro]

I am using MiWi Pro wireless networking protocol and I was running some tests with unicast function, but I encountered a problem. Unicast Main Issue: The end device doesn't receive the messages from its parent coordinator whether the unicast message…
cookie monster
  • 77
  • 1
  • 10
0
votes
7 answers

How do you write and read to memory with PIC18?

I want to store a number to PIC18 then retain it even if the power is lost or the unit is reset. I think my writing code portion looks fine, just the reading portion of it looks strange after the unit is reset. I am using the following code which I…
Ammar
  • 1,203
  • 5
  • 27
  • 64
0
votes
2 answers

viewing a structure in MPLAB watch window

I want to view a structure in the MPLAB watch window, but when I select it from the "Add symbol" drop down menu I get, "Unsupported Structure". I was hoping to look for an answer on microchip's forums, but the site seems to be down, so I thought I…
Brent
  • 143
  • 2
  • 6
0
votes
2 answers

Passing structure into ISR

I am programming in C using Hi-Tech-PICC v9.65PL1 to program a PIC16F876. For interrupts I am using the structure: void interrupt isr() { if (T0IF) { //Do STUFF T0IF = 0; } } I am trying to figure out how to pass an…
Michael
  • 309
  • 2
  • 3
  • 16
0
votes
2 answers

PIC18F reset cause WDT_FROM_SLEEP

I use PIC18F6622 and PICC compiler. I use the Watch Dog Timer to regularly wake from sleep mode. The data sheet states that watch dog fire during power-managed modes exits the mode and usually it works just fine. However, sometimes I see an…
lkanab
  • 924
  • 1
  • 7
  • 20
0
votes
1 answer

how to convert this part of code from assembly to C language

i have a problem converting assembly code for microchip pic into C language it is two parts first part is movlw HIGH RevTable ; get MS byte of table and the table is RevTable retlw B’00000000’ ; invalid retlw B’00100001’ ; phase /6 …
0
votes
2 answers

Microchip PIC programming advice

I need some advice, I have a bunch of little boards that I am using for home automation and I keep making changes and having to re-flash to boards. I added the ICSP header to all my boards so it is easy to flash them. here is my question I am a…
BrandonS
  • 932
  • 7
  • 16
0
votes
1 answer

Odd behavior with switch statement using C30 and MPLAB X

I am experimenting an strange problem with C30 and MPLAB X, I have this piece of code: unsigned char mode; switch(mode){ // Eligo el modo que se envio a traves del UART case FRECUENCIMETER: …
Andres
  • 6,080
  • 13
  • 60
  • 110
0
votes
1 answer

Browser delays between individual HTTP GET file requests

I am debugging a web server running on a Microchip embedded platform. The embedded part should not be relevant, with the exception that the firmware source allows me full control of coding all TCP/IP communication. Especially on Internet Explorer,…
0
votes
1 answer

c# microchip mcp2200 high cpu usage

I a have microchip mcp2200 device. To device is attached tree buttons (as digital inputs). I use it as feedback machine. I attached it to windows server 2003 x64. Then i used microchips mcp2200 driver and Managed SimpleIO DLL in my C# app. In C# i…
Guntis
  • 496
  • 1
  • 5
  • 19