Forums Search for: PIC16
"C" source code for I2C slave PIC16F81x
inHi All, I have to write an PIC16F819 based application that act as I2C slave device. As for compiler I will use HI-TECH PICC together with...
Hi All, I have to write an PIC16F819 based application that act as I2C slave device. As for compiler I will use HI-TECH PICC together with MPLAB. Could anyone, please, send me sample "C" code for that. I have no assembler knowledge :-( Any link/source/hint would be appreciated. Thank you, Tesvit.
Odd PIC16HV540 problem
inI recently found, amid my stock of components, five UV-erasable PIC16HV540s. These are the PIC with the built-in voltage regulator that can...
I recently found, amid my stock of components, five UV-erasable PIC16HV540s. These are the PIC with the built-in voltage regulator that can operate from a 12-volt supply. My PICSTART Plus said at first that they weren't blank; the first 45 or so memory locations would read back as 0 rather than FF. On subsequent tries, the region of 0's grew, and now it says they're code-protected. ...
PIC16F452 WDT time-out problem
inDear Sirs, I've developed a product on basis of PIC16F442. On some conditions my unit goes to the SLEEP mode and wake up from the SLEEP on WDT...
Dear Sirs, I've developed a product on basis of PIC16F442. On some conditions my unit goes to the SLEEP mode and wake up from the SLEEP on WDT time-out or on an interrupt. The postscaler,I've taken, is 64, giving us 64 * 18msec = 1.152sec. I tested it with MPLAB ICE-2000 and found everything is OK. But then I burned the real chip(I have only PIC16F452) and found that the WDT time-out is 1...
learning pic16f874
inHi guys, waz' up? I'm interested in learning assembly language, where do I start? We've got the Electronic Application subject at school...
Hi guys, waz' up? I'm interested in learning assembly language, where do I start? We've got the Electronic Application subject at school in which we program pic16f874 and guys I'm in a jungle there, totaly lost. Please, please, bail me out guys!!! any suggestions of sites offerng tutorials??? Thanx in advance. Tchavez
Newbie: Beginner Questions[long]
inBackground:I have done interfacing of PIC16f877 and 8051 with an ADC, DAC, stepper motor, LCD etc using port pins. Using this method I...
Background:I have done interfacing of PIC16f877 and 8051 with an ADC, DAC, stepper motor, LCD etc using port pins. Using this method I can interface anything with a uC. 1. I want to learn interfacing using I2C or any other bus. What I don't understand is how are the control/data registers mapped onto the uC i/o or memory space? When I interfaced a LCD, I used the port pins and each pin r...
Help getting an LCD to work
inI have an Optrex LCD (DMC-20481NY-LY-AGE) that is 4x20 characters and driven by a Microchip PIC16F877 running at 20MHz. I know I got this exact...
I have an Optrex LCD (DMC-20481NY-LY-AGE) that is 4x20 characters and driven by a Microchip PIC16F877 running at 20MHz. I know I got this exact same physical LCD to work before but for the life of me I can't recall what trick I used to do so. Attached at the end is my software. I get power to the LCD, but all I see is lines 1 and 3 as all dark and lines 2 and 4 as all clear. Hunting aroun...
PDIUSBD12 USB odyssey,help
Hi to all in the aim of studying USBprotocol i built a little board including a 9s12 microcontroller and a PDIUSBD12 parallel to USB...
Hi to all in the aim of studying USBprotocol i built a little board including a 9s12 microcontroller and a PDIUSBD12 parallel to USB interface,often called D12 well after spending tenth of hours on it i can't even have the enumeration, i ask desperately help, i started modifying(maybe not in the right way) the code from http://www.beyondlogic.org/usbnutshell/usb7.htm#PIC16F876Example,i...
cmos camera with a pic
inHi, i need only to store a picture when an event happens, i want to do it with a pic16f876A, i dont need to do any kind of image processing...
Hi, i need only to store a picture when an event happens, i want to do it with a pic16f876A, i dont need to do any kind of image processing i think, just take a picture and store it into a flash, so my question is what cmos camera do you recomend for this? thank you in advance
Programming Surface Mount PICs
inHello All, I am working on a tiny board with a surface mount microcontroller. (PIC16F876A) I have a P16PRO40 programmer, and it works...
Hello All, I am working on a tiny board with a surface mount microcontroller. (PIC16F876A) I have a P16PRO40 programmer, and it works quite well for DIP packaged chips, but there's no easy/good way to program surface mount devices. So I thought it wouldn't be too difficult to pull over the critical lines from the programmer to my new PCB (that has a pic16f876a on it) and program the m...
How do i create an accurate delay
inHi all, I am in the middle of coding a PIC16f876 and i require some time sensitive delays. In the milli and micro domains. I am using C...
Hi all, I am in the middle of coding a PIC16f876 and i require some time sensitive delays. In the milli and micro domains. I am using C to program the core functions but i was advised to use ASM to create a delay as it is more accurate. i am clue less on how to go about this and was wondering if anyone new any good resources i could use or if there are any sample codes floating about that ...
MAX3100 - no FIFO overflow status bit? Any other SPI/UART?
inAs far as I can tell from the specification, the Maxim MAX3100 can lose bytes if the FIFO overflows and the softwarae cannot detect that this...
As far as I can tell from the specification, the Maxim MAX3100 can lose bytes if the FIFO overflows and the softwarae cannot detect that this has happened. Of course, the software should be quick enough, but real life is full of nasty surprises. The CRC should detect it, but see earlier remark. I have to hook a PIC16F876 to a Cypress 8051 using the debug ports (so no CTS or RTS wires)...
USART, single master (8051), multiple slave (PIC16F876) - suggestions
inWe built a machine with a CAN bus connecting modules to a CAN board in a PC. We had a useful little Laser Beam Power Meter [LBPM] board based...
We built a machine with a CAN bus connecting modules to a CAN board in a PC. We had a useful little Laser Beam Power Meter [LBPM] board based on a PIC16F876 attached to CAN. It had a debug serial port. S/w was developed on MPLAB/CCSC C. The next machine used a Cypress FX2LP (based on an 8051). It has a debug serial port. S/w was developed on Keil C. Whaddya know, we need to conn...
unsure of fuses for an lcd display
inwe are doing a project using solar power to judge how many hours of sunlight there are a day. everything has been put together but when we go to...
we are doing a project using solar power to judge how many hours of sunlight there are a day. everything has been put together but when we go to burn the program onto the pic16f876 we are unsure where to find which fuses should be used and which should not any help out there???
Dallas RTC 1305 and interrupts
inHello All, I started a project which uses a PIC16F876 and a RTC DS1305 from Dallas. There is no problem to read and write the registers. My only...
Hello All, I started a project which uses a PIC16F876 and a RTC DS1305 from Dallas. There is no problem to read and write the registers. My only problem is the interruption . I connected the INT0 for the RTC to the RB0 pin of the PIC (I used a 5k pull-up resitor). I configured correctly (I think ) the registers to activate a interrupt every second . When I test my program, it appears that th...
I2C multiple addresses for slave
inI am trying to implement a slave I2C interface using a PIC16F876 but it can only accept a single address as a slave, I have looked at the Atmega...
I am trying to implement a slave I2C interface using a PIC16F876 but it can only accept a single address as a slave, I have looked at the Atmega 168 and it has an address mask register (TWAM) but I am unsure if this will allow the device to respond to more than one slave address. Anyone with any knowledge on multiple addressing I2C in slave mode? Phil
n00b with GSM & PIC
inHello Gurus This is my second day at this website, I've been trying to absorb as much as I can. I've read up some of the Nokia fbus and the...
Hello Gurus This is my second day at this website, I've been trying to absorb as much as I can. I've read up some of the Nokia fbus and the like, I think I understand it a little but I wont know for sure until I try it. I'm familiar with some programming with PIC, specifically the PIC16F84. What I'm trying to achieve is I would like to create a device with a PIC that will output pins as code...
programming pic18f2550
inHi everybody, i'm not very skilled in pic programming, however i have sucessfully programmed pic16f84 with a Shaer programmed build by...
Hi everybody, i'm not very skilled in pic programming, however i have sucessfully programmed pic16f84 with a Shaer programmed build by myself. Now I want to program a pic18f2550, because I want to use USB capability. Do you think my programmer should work properly? Should I make some variation? The software i used is IC-Prog, wich does not seem to support this device? Does anyone know wha...
Atmel ATmega2561 is no better than PIC16F84
inSo I've finally got my precious samples of ATmega2561. With 256Kbytes of Flash I should be able to store massive look-up tables, but wait...
So I've finally got my precious samples of ATmega2561. With 256Kbytes of Flash I should be able to store massive look-up tables, but wait a minute the Flash memory is segmented into 64Kbyte lumps. The data sheet states: "For ELPM/SPM instructions, the Z-pointer is a concatenation of RAMPZ, ZH, and ZL" But is that really true? I find that I have the following instruction: ELPM Rd,Z+ ...
time need to execute an instruction
inWhen f=1MHz how much time need exactly to execute a NOP on a PIC16F84 chip? (I think 4us but I am not sure) Thanks Attila
When f=1MHz how much time need exactly to execute a NOP on a PIC16F84 chip? (I think 4us but I am not sure) Thanks Attila