PIC16F452 WDT time-out problem

Started by El75 in comp.arch.embedded13 years ago 1 reply

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...

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...


"C" source code for I2C slave PIC16F81x

Started by Tesvit in comp.arch.embedded12 years ago 24 replies

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...

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

Started by mc in comp.arch.embedded13 years ago 1 reply

I 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. ...


MAXQ core

Started by Ville Voipio in comp.arch.embedded13 years ago 3 replies

I got a new issue of the Maxim Microcontroller Engineering Review. Instead of being full of 51-based stuff, it introduces a new core...

I got a new issue of the Maxim Microcontroller Engineering Review. Instead of being full of 51-based stuff, it introduces a new core (MAXQ). The core looks pretty ok, it seems to be an 8-bit RISC core with 16-bit (quite) orthogonal one-cycle instructions. Maxim's comparisons with AVR, PIC16, and MSP430 (but not with '51...) show that the core is rather efficient both powerwise and in co...


Motorola MC68HC705P3 to PIC16/18 28-pin converter??

Started by Mike V. in comp.arch.embedded13 years ago 1 reply

Hi, I need to convert MC68HC705-based firmware to PIC. The original is a 28 pin MOT microcontroller. Is there a company that makes...

Hi, I need to convert MC68HC705-based firmware to PIC. The original is a 28 pin MOT microcontroller. Is there a company that makes MOT-to-MCHP microcontroller converter PC boards, and vice versa? Thanks, Mike


Which PIC18 C Compiler?

Started by Talal Itani in comp.arch.embedded10 years ago 87 replies

Hello, I currently have an ICD2 from Microchip. I use it to develop PIC16 code using the MPLAB debugger and assembler. I need to move to the...

Hello, I currently have an ICD2 from Microchip. I use it to develop PIC16 code using the MPLAB debugger and assembler. I need to move to the PIC18 parts and C language, but I am struggling figure out the development tools to get. Do you have any experience with the CCS compiler running with MPLAB and ICD2? ($175 solution) Thanks, Talal


16 bit count down - PIC16

Started by Mauritz Geyser in comp.arch.embedded13 years ago 2 replies

Hi Can someone please help me with the asm code for a 16-bit count down loop for a PIC16 processor. The following code does not count down...

Hi Can someone please help me with the asm code for a 16-bit count down loop for a PIC16 processor. The following code does not count down properly. It exits the loop when both 0Ch and 0Dh are 1. movlw h'FF' movwf 0Ch movwf 0Dh loop decfsz 0Ch goto loop decfsz 0Dh goto loop return Thanks Mau...


Faster LIN or simpler CAN or ...? PIC16 or Cypress FX2LP or ...?

Started by Bill Davy in comp.arch.embedded12 years ago 7 replies

To support various modules inside a machine. The likely architecture is a front end PC talking USB 2.0 to a Cypress FX2LP in the machine. That...

To support various modules inside a machine. The likely architecture is a front end PC talking USB 2.0 to a Cypress FX2LP in the machine. That then splits the control work out to various nodes (spinner, motor, shutter, laser, etc), connected by a bus. a) CAN involves me in checking each message was received once and only once. There's not a lot of space in the Cypress for that sor...


[Comparison] PIC vs 8051

Started by Anonymous in comp.arch.embedded11 years ago 26 replies

For someone eventually migrating to ARM based architectures - which of these, 8051 or PIC16, resembles ARM more closely from programmer...

For someone eventually migrating to ARM based architectures - which of these, 8051 or PIC16, resembles ARM more closely from programmer point of view - memory structure/model, assembly etc. Cheers


undocumented PIC16 opcodes

Started by bruno gavand in comp.arch.embedded10 years ago 26 replies

Hi, I listed 119 undocumented PIC16 opcodes here : http://www.micro-examples.com/public/microex-navig/doc/087-pic16-secret-opcode.html Does...

Hi, I listed 119 undocumented PIC16 opcodes here : http://www.micro-examples.com/public/microex-navig/doc/087-pic16-secret-opcode.html Does anybody here ever tried one of them ? Thanks, Bruno


Microchip Pic32 exception: ???

Started by Claude in comp.arch.embedded6 years ago 10 replies

Hi. I'm trying to understand the Pic32 (a decade of familiarity with Pic16 and Pic18). I got myself an Ethernet Starter Kit. The demos run,...

Hi. I'm trying to understand the Pic32 (a decade of familiarity with Pic16 and Pic18). I got myself an Ethernet Starter Kit. The demos run, and I have been able to edit them. So I tried to get two stacks working together. I then proceeded merging the TCPIP demo and the USB MSD demo. The latter just looks for a pendrive and when it sees it a simple text file gets written. The TCPIP integ...


MPLAB and my WPR3 programmer

Started by Sonnich Jensen in comp.arch.embedded6 years ago 18 replies

Hi all I got a programmer named WPR3. It offers to program PIC16 and PIC12, as well as some cards and EEPROMs. I only need the PIC...

Hi all I got a programmer named WPR3. It offers to program PIC16 and PIC12, as well as some cards and EEPROMs. I only need the PIC part. It is an older type, which is directly controlled by the parallel port, a type which should have been common at the time. Though I have not found much on the net. My basic problem is that my MPLAB will not use/accept it, and I dont know where to get...


Problems with PIC167872 sending data from sensors to computer through usb module gigatechnology usbmod2

Started by clement in comp.arch.embedded13 years ago 4 replies

Hi am trying to send data from 2 sharp GP2D02 proximity sensors and 2 devantech srf04 ultrasonic sensors being controlled by a PIC16F872 through...

Hi am trying to send data from 2 sharp GP2D02 proximity sensors and 2 devantech srf04 ultrasonic sensors being controlled by a PIC16F872 through gigatechnology's usbmod2 (Serial To Usb module) to my computer. I have given the code below that I am using but unfortunately I cannot get it working. A very strange thing happens when I connect a wire between VSS pin 19 and OSC2 pin 10, once I turn ...


Problem with SMBus

Started by Lanarcam in comp.arch.embedded13 years ago 1 reply

We have a problem with an SMBus connection. Both signals clock and data are stuck low on the slave side. the slave is a PIC16C. We tend to...

We have a problem with an SMBus connection. Both signals clock and data are stuck low on the slave side. the slave is a PIC16C. We tend to exclude a software problem on the slave since all I2C status bits are tested and some of the functionalities of the PIC are still available. We think that this is a problem with the PIC I2C Hardware. It occurs randomly and can be reproduced by injecting...


PIC migration timing problem

Started by PigPOg in comp.arch.embedded11 years ago 11 replies

Hi, can anyone advise please? I've migrated code running on a PIC16C54 to a PIC18F1320. Both use an external RC network. On the OSC2 pin both...

Hi, can anyone advise please? I've migrated code running on a PIC16C54 to a PIC18F1320. Both use an external RC network. On the OSC2 pin both processors show a nice clock at 25 KHz (which is correct). However, the 18F1320 seems to be executing code at twice the speed! Have I overlooked something? Thanks in advance for any help? Simon


Hardware muldiplier/divider for PIC16C57 on FPGA, but how do I program it?

Started by Kelv...@ SG in comp.arch.embedded13 years ago 4 replies

Hi, there: I am doing some exercise with a PIC15C57 core on FPGA. Now I am adding a multiplier to address 7C~7F...Basically in assembly I...

Hi, there: I am doing some exercise with a PIC15C57 core on FPGA. Now I am adding a multiplier to address 7C~7F...Basically in assembly I will write two variables to 7C & 7D, then fetch the result from 7E & 7F...Similar idea to a divider...Will such a crazy idea find application in the real world? Plus...I can add stuff like UART, DDS, etc... Kelvin


How to implement SPI using low-cost Microchip PIC16C5X series

Started by John Tan in comp.arch.embedded13 years ago 4 replies

How can we easily implement SPI using Microchip PIC16C5X series devices, using some GPIO. If firmware achievable to implement a slave/master...

How can we easily implement SPI using Microchip PIC16C5X series devices, using some GPIO. If firmware achievable to implement a slave/master interface. Thanks for everyones input here....!


pic tmr0 question

Started by TestUser12 in comp.arch.embedded9 years ago

Hi, There is a PIC16C620A microcontroller which is running at 16MHz. In which time intervals starts the TMR0 interrupt routine? I mean...

Hi, There is a PIC16C620A microcontroller which is running at 16MHz. In which time intervals starts the TMR0 interrupt routine? I mean to 12.5us, but Im not sure. Here is a part of the program TMR0_RELOAD equ 215 ;reload value for tmr0 .... movlw b'11011111' ;tmr0 clock is internal, prescaler -> wdt movwf OPTION_REG ..... movlw TMR0_RELOAD ;initialize tmr0 movwf TMR0 movlw


PIC16C62B to 16F872, no clock CLKOUT?

Started by Mark A. Odell in comp.arch.embedded13 years ago 1 reply

I'm wondering if there is some well known issue with the 16F872 WRT using the RC oscillator mode. I was told that the 'F872 was a...

I'm wondering if there is some well known issue with the 16F872 WRT using the RC oscillator mode. I was told that the 'F872 was a pin-compatible replacement for the 'C62B (ignoring the A/D). When the 'C62B is in the socket I get a nice clock out signal on pin 10, CLKOUT. Quickly swapping in the 'F872 I get a DC low-level and pin 9, CLKIN is a DC high-level. Anyone? Thanks. -- - Mark ...


C500 & PIC16C64

Started by Simon in comp.arch.embedded13 years ago 6 replies

Hi I'm a second year computing student and am struggling with an assignment where I have to compane the C500 and PIC16C64 Microcontrollers. Any...

Hi I'm a second year computing student and am struggling with an assignment where I have to compane the C500 and PIC16C64 Microcontrollers. Any information you people can give me would be greatly appreciated! Many Thanks