Binary Range Detection

Started by bg3009 in Piclist14 years ago 7 replies

guys , Does anyone know how to do a binary range detection code? This is the picture. I have a range of voltages (0.0V to...

guys , Does anyone know how to do a binary range detection code? This is the picture. I have a range of voltages (0.0V to 2.5V) being converted by the 10 bit ADC. I need to light up an LED when the voltage level falls between two levels ( say between 1.8V to 2.4V). H


BumbleBee and Wisp628

Started by holopoint.rm in Piclist15 years ago 4 replies

I just finish building a wisp628 programmer and I tried using bumbleBee to program my first PIC , a 628 based led blinker. (just...

I just finish building a wisp628 programmer and I tried using bumbleBee to program my first PIC , a 628 based led blinker. (just as described on Wouter's page, thanks Wouter for all the work on this project !) The bumble bee acknowledges the programmer and can retrieve the


Regarding ICD2

Started by AMIT KAPOOR in Piclist14 years ago 4 replies

hi, I  dont knw whether this question should be posted in this group or not but still i am posting as it is related to PIC...

hi, I  dont knw whether this question should be posted in this group or not but still i am posting as it is related to PIC ......... Actually i am using ICD2 for programming and debugging ...everything was working fine till yesterday but today suddenly "busy " led on ICD2


keypad interface

Started by Dave Mucha in Piclist14 years ago 9 replies

Hi all, I'm looking at a way to interface a 12 button keypad, like a telephone keypad. What I want is to be able to...

Hi all, I'm looking at a way to interface a 12 button keypad, like a telephone keypad. What I want is to be able to turn on an LED from 1 to about 200 by pressing 123# to trun on number 123 and then press 123* to turn it off. Is there


IC-Prog problem with internal oscillator setting

Started by a_drunken_dwarf in Piclist15 years ago 2 replies

Hi, I'm using IC-Prog to download a 'blink' hex file (supposed to make led's blink) to my PIC16f877. I've done successful downloads...

Hi, I'm using IC-Prog to download a 'blink' hex file (supposed to make led's blink) to my PIC16f877. I've done successful downloads to the PIC before (it's 'verfied' the code after it sent it to the PIC). However, the PIC doesn't flash LEDs after the program is sent to it. I'm no


LED displays, synchronous serial?

Started by tadaosystems in Piclist15 years ago 4 replies

I'm using a PIC16F627 to hopefully control an Osram SCDQ 4 character, 5x5 matrix display. It uses 5 inputs, being gnd, vcc,...

I'm using a PIC16F627 to hopefully control an Osram SCDQ 4 character, 5x5 matrix display. It uses 5 inputs, being gnd, vcc, sdclk, sdata, and load. I've been trying to set up the 16F627 to use synchronous master serial to send characters to the display, but haven't be


Another Newbie Question

Started by xdriverdude in Piclist14 years ago 8 replies

Ok here goes another PIC Newbie question. Background information: I have an LM34DZ (Temperature Sensor) connected to the AD...

Ok here goes another PIC Newbie question. Background information: I have an LM34DZ (Temperature Sensor) connected to the AD converter and I can get the AD converter to perform properly and place the result into ADRESL. I can display ADRESL information on a LED's


Using Identifiers for pins in PicBasic Pro

Started by castaways3373 in Piclist15 years ago

With PBP, are you not allowed to use identifiers as pins? Such as this code to turn on all LED's on PORTB in succession, pause,...

With PBP, are you not allowed to use identifiers as pins? Such as this code to turn on all LED's on PORTB in succession, pause, then turn all off TRISB = 0 N var byte for N = 0 to 7 PORTB.N = 1 Next N Pause 10 PORTB = 0


driving me mad - can't run @ 20mhz

Started by swmillar in Piclist15 years ago 5 replies

hi all, trying to run a 16F676 @ 20mhz instead of 4mhz. simply changing the code to say define osc 20 doesn't work (just...

hi all, trying to run a 16F676 @ 20mhz instead of 4mhz. simply changing the code to say define osc 20 doesn't work (just blinks the led 5 times slower - i.e. the code is generated to run @ 20mhz but the chip is still running @ 4mhz. i see i need to


Drew's Clock (32x8 MUX LED display)

Started by sergio masci in Piclist14 years ago 1 reply

Hi All, Drew produced a digital clock for his college project. It uses a 32x8 multiplex array of LEDs (256 in total) ...

Hi All, Drew produced a digital clock for his college project. It uses a 32x8 multiplex array of LEDs (256 in total) The display is bit mapped and you could actually use the project as a scrolling message board. All the components (except the matrix


Hi-Tech init of PORTD on 16F877

Started by KM6VV in Piclist13 years ago 1 reply

Hi to the list! I'm having problems getting an LED display (4 digits) to work with a 20 Mhz 16F877A. New (to me) compiler, PIC C, 7.83...

Hi to the list! I'm having problems getting an LED display (4 digits) to work with a 20 Mhz 16F877A. New (to me) compiler, PIC C, 7.83 OLD compiler was CCS. The Display is common cathode, digits are selected with a ULN2003 driver from RB7, RB6, RC7, RC5 pins (which appear to work), and the segments are driven through 220 ohm resistors from PORTD.


P16PRO40 problem - bad hardware or operator error?

Started by Jeff Swayze in Piclist15 years ago 4 replies

I'm just starting out with PIC programming and bought a "built and tested" P16PRO40 programmer board from Amazon Electronics. I...

I'm just starting out with PIC programming and bought a "built and tested" P16PRO40 programmer board from Amazon Electronics. I found a simple LED flasher hex file and attempted to load it into the 16F84A that I purchased with the board. Obviously it didn't work since I'm


timer0 in pic16f84a

Started by Nisheeth Gupta in Piclist15 years ago 3 replies

hi hello i have just started progrmming in assembly of pic . i wrote a simple program for pic16f84a running at 4mhz . it has...

hi hello i have just started progrmming in assembly of pic . i wrote a simple program for pic16f84a running at 4mhz . it has got a timer routine which runs for 0.1 sec and sec1 routine which calls timer routine 10 times..to waste 1 sec.....main program toggles led onc


OT:Power supply

Started by Anonymous in Piclist14 years ago 1 reply

I'm looking for a bench power supply with a current indicator - meter, LCD,LED. Does anyone have anything like that they would...

I'm looking for a bench power supply with a current indicator - meter, LCD,LED. Does anyone have anything like that they would like to sell? Sid


my troubled program for the led app.

Started by rahzdapoj in Piclist15 years ago

#DEFINE page0 BCF status,5 #DEFINE page1 BSF status,5 status: EQU 03 ;general equates portA: EQU 05 trisA: EQU 05 ...

#DEFINE page0 BCF status,5 #DEFINE page1 BSF status,5 status: EQU 03 ;general equates portA: EQU 05 trisA: EQU 05 portB: EQU 06 trisB: EQU 06 pcl: EQU 02 rtcc: EQU 01 option_reg: EQU 01 intcon: EQU 0B f: EQU 01 w: EQU


I'm a novice working with 16f628a

Started by sr_gamer in Piclist9 years ago 1 reply

I've been searching around for examples, but learning is slow going. At the moment I'm trying to program a 16f628a to light one LED for a...

I've been searching around for examples, but learning is slow going. At the moment I'm trying to program a 16f628a to light one LED for a controlled length of time and then light another for a controlled length of time and then the program should end. This is just a learning exercise. I'm using the HiTech C compiler with MPLAB and programming with a PICkit2. When I run the code that I've...


How to convert .ASM file HEX need help...!!

Started by Ashan Abeysekara in Piclist14 years ago 1 reply

Dear Friend, I am new to PIC Micro and I have selected 16F84 to start my testing. I have created an ASM program now how do I...

Dear Friend, I am new to PIC Micro and I have selected 16F84 to start my testing. I have created an ASM program now how do I convert in to HEX file to program in to 16F84. My program using port A and A1(2nd ping)and I try to turned on and off LED.


Need Help..How to convert asm file to Hex

Started by ashan_abeysekara in Piclist14 years ago 1 reply

Dear Friend, I am new to PIC Micro and I have selected 16F84 to start my testing. I have created an ASM program now how do I...

Dear Friend, I am new to PIC Micro and I have selected 16F84 to start my testing. I have created an ASM program now how do I convert in to HEX file to program in to 16F84. My program using port A and A1(2nd ping)and I try to turned on and off LED.


Does RD/TX pins of PIC need a 330 resistor to drive a Opto ?

Started by Kamal Shankar in Piclist12 years ago 1 reply

Hi I was reading the electrical specs of the PIC16F876A and saw that PORTC=20 sinks 200mA of current. If I was to interface an...

Hi I was reading the electrical specs of the PIC16F876A and saw that PORTC=20 sinks 200mA of current. If I was to interface an optocoupler's LED side (which sources max=20 15mA), won't I need to connect a 300/470 Ohm resistor in series ? I also noticed it being given that ANY I/O pin sinks/sources max 25mA=20 of current.. So, I am a little confused regarding the current ratings. ...


ICD2 Busy and Hung

Started by scottmack1 in Piclist11 years ago

I am having some kind of problem with the communications to the ICD2. When I start MPLAB IDE v7.60 with the ICD2 plugged in my computer's USB...

I am having some kind of problem with the communications to the ICD2. When I start MPLAB IDE v7.60 with the ICD2 plugged in my computer's USB port and the ICD2 plugged into my pcb (PIC16F887), it connects OK, reads ICD Product ID, runs the ICD self test, passed, says MPLAB ICD2 Ready but continues to have the Busy led on the ICD2 blinking. If I click in the program window or around on ...