Home     Contact     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science     RSS     Terms of services     Privacy policy  
   
 Home     Forum     Projects     Experiments     Circuits     Theory     BLOG     PIC Tutorials     Time for Science   

Author Topic: Landing Pad Project (modding the LED sequencer)  (Read 12471 times)

0 Members and 1 Guest are viewing this topic.

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #15 on: November 13, 2011, 02:36:45 AM »
TY.

Just need to say, I only had one LED out, as per your schematic, in the simulation, but that should not affect this stage, should it?

MPLAB Build output

*******

----------------------------------------------------------------------
Release build of project `J:\___LED Sequencer\Led Sequencer.disposable_mcp' started.
Language tool versions: MPASMWIN.exe v5.42, mplink.exe v4.40, mplib.exe v4.40
Sun Nov 13 00:27:46 2011
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F88 "Led Sequencer.asm" /l"Led Sequencer.lst" /e"Led Sequencer.err"
Error[113]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 3 : Symbol not previously defined (_config1)
Error[126]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 3 : Argument out of range (not a valid config register address)
Error[113]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 4 : Symbol not previously defined (_config2)
Error[126]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 4 : Argument out of range (not a valid config register address)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 1 : Found label after column 1. (bank1)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 9 : Symbol not previously defined (option_reg)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 10 : Symbol not previously defined (pie1)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 11 : Symbol not previously defined (pie2)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 12 : Symbol not previously defined (ansel)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 13 : Symbol not previously defined (txsta)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 417 : Symbol not previously defined (status)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 417 : Symbol not previously defined (rp1)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 418 : Symbol not previously defined (status)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 418 : Symbol not previously defined (rp0)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 15 : Symbol not previously defined (intcon)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 16 : Symbol not previously defined (ccp1con)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 17 : Symbol not previously defined (t1con)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 20 : Found label after column 1. (bank2)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 24 : Found label after column 1. (bank1)
Error[116]   J:\___LED SEQUENCER\INIT_NORMAL.INC 24 : Address label duplicated or different in second pass (bank1)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 29 : Found label after column 1. (bank0)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 31 : Symbol not previously defined (rcsta)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 32 : Symbol not previously defined (adcon0)
Warning[207] J:\___LED SEQUENCER\LED SEQUENCER.ASM 29 : Found label after column 1. (bank1)
Error[116]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 29 : Address label duplicated or different in second pass (bank1)
Warning[207] J:\___LED SEQUENCER\LED SEQUENCER.ASM 35 : Found label after column 1. (bank0)
Error[116]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 35 : Address label duplicated or different in second pass (bank0)
Error[113]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 38 : Symbol not previously defined (Carry)
Error[128]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 38 : Missing argument(s)
Error[113]   J:\___LED SEQUENCER\MSECDELAYS4MHZ.INC 38 : Symbol not previously defined (Zero)
Error[128]   J:\___LED SEQUENCER\MSECDELAYS4MHZ.INC 38 : Missing argument(s)
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `J:\___LED Sequencer\Led Sequencer.disposable_mcp' failed.
Language tool versions: MPASMWIN.exe v5.42, mplink.exe v4.40, mplib.exe v4.40
Sun Nov 13 00:27:48 2011
----------------------------------------------------------------------
BUILD FAILED

******

ISIS .ERR file content ....

******

Error[113]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 3 : Symbol not previously defined (_config1)
Error[126]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 3 : Argument out of range (not a valid config register address)
Error[113]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 4 : Symbol not previously defined (_config2)
Error[126]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 4 : Argument out of range (not a valid config register address)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 1 : Found label after column 1. (bank1)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 9 : Symbol not previously defined (option_reg)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 10 : Symbol not previously defined (pie1)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 11 : Symbol not previously defined (pie2)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 12 : Symbol not previously defined (ansel)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 13 : Symbol not previously defined (txsta)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 417 : Symbol not previously defined (status)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 417 : Symbol not previously defined (rp1)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 418 : Symbol not previously defined (status)
Error[113]   J:\___LED SEQUENCER\P16F88.INC 418 : Symbol not previously defined (rp0)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 15 : Symbol not previously defined (intcon)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 16 : Symbol not previously defined (ccp1con)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 17 : Symbol not previously defined (t1con)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 20 : Found label after column 1. (bank2)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 24 : Found label after column 1. (bank1)
Error[116]   J:\___LED SEQUENCER\INIT_NORMAL.INC 24 : Address label duplicated or different in second pass (bank1)
Warning[207] J:\___LED SEQUENCER\INIT_NORMAL.INC 29 : Found label after column 1. (bank0)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 31 : Symbol not previously defined (rcsta)
Error[113]   J:\___LED SEQUENCER\INIT_NORMAL.INC 32 : Symbol not previously defined (adcon0)
Warning[207] J:\___LED SEQUENCER\LED SEQUENCER.ASM 29 : Found label after column 1. (bank1)
Error[116]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 29 : Address label duplicated or different in second pass (bank1)
Warning[207] J:\___LED SEQUENCER\LED SEQUENCER.ASM 35 : Found label after column 1. (bank0)
Error[116]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 35 : Address label duplicated or different in second pass (bank0)
Error[113]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 38 : Symbol not previously defined (Carry)
Error[128]   J:\___LED SEQUENCER\LED SEQUENCER.ASM 38 : Missing argument(s)
Error[113]   J:\___LED SEQUENCER\MSECDELAYS4MHZ.INC 38 : Symbol not previously defined (Zero)
Error[128]   J:\___LED SEQUENCER\MSECDELAYS4MHZ.INC 38 : Missing argument(s)

******

I am a novice, on PICs, in these sims.

CS

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #16 on: November 13, 2011, 03:13:17 AM »
It looks like a case sensitivity issue ... but you must use MPLAB to compile and prog the chip, no?

http://www.microchip.com/forums/m580237-print.aspx
http://www.microchip.com/forums/m565801-print.aspx

TY

CS
« Last Edit: November 13, 2011, 03:15:41 AM by Colonel Shofer »

George

  • Jr. Member
  • **
  • Posts: 73
Re: Landing Pad Project (modding the LED sequencer)
« Reply #17 on: November 13, 2011, 03:41:07 AM »
It is case sensitivity

look at http://pcbheaven.com/picpages/MPLAB-Starting_a_new_project/


Item 10 - disable case sensitivity in MPLAB

Step 10:
The "Buld options" dialog appears. Go to the tab labeled "MPASM Assembler" and make sure the checkbox "Disable case sensitivity" is checked. Then, click "Ok"

Cheers

George

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #18 on: November 13, 2011, 03:53:02 AM »
Great George TY, worked in MPLAB.

Now, see if I can find how to do that in ISIS !!!  ideas?

Cannot even get ISIS to see the .hex file from MPLAB yet, even though it is pointed at it !!!

Cheers.

CS
« Last Edit: November 13, 2011, 04:37:49 AM by Colonel Shofer »

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #19 on: November 13, 2011, 05:45:39 AM »
OK, got the pic going in ISIS, with the .hex from MPLAB :)

Anyone ready to help me with the program for my LED layout, please? :)

TYIA.

CS
« Last Edit: November 13, 2011, 06:32:08 AM by Colonel Shofer »

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: Landing Pad Project (modding the LED sequencer)
« Reply #20 on: November 13, 2011, 21:55:45 PM »
do you have a preliminary schematic in mind??????? like, for example, how the LEDs are supposed to light?

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #21 on: November 13, 2011, 23:20:48 PM »
Hi K,

Yup, just on it now, TY :)

CS

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #22 on: November 14, 2011, 00:19:55 AM »
TY K,

OK, here is 'the spec' ...

(1) 4 'rings' of LEDS, each in parallel, for now, but will be optimising later.
(2) 1 blue ring, PWM (?) to pulsate.
(3) 3 red rings, Outer (O), Middle (M) and Inner (I).
(4) Sequence is O>M>I>O>M>I>O>M>I etc
(5) I will be running each ring, from a transistor, in reality.

My main problem (because I am a PICs programming newbie :) ), is how to get the blue ring pulsing, continuously, whilst the red rings sequence down from O to I.

Please excuse cludgy wiring :)





TYIA.

CS
« Last Edit: November 14, 2011, 01:18:22 AM by Colonel Shofer »

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: Landing Pad Project (modding the LED sequencer)
« Reply #23 on: November 14, 2011, 15:47:36 PM »
is there any particular reason to use PIC? The circuit that you describe needs only a 4017 and a 555 (oh, and 4 transistors). See the attachment.

P.S. The 555 must be connected as an astable multivibator but i was too lazy to do it on the schematic. It is easy to do it. LEDs13 through 16 are the blue LEDs, and the others are the 4 LEDs on each "circle".

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #24 on: November 14, 2011, 17:58:06 PM »
Hi K,

No, that is great TY ... a wonderful alternative which I will build too :)

How would I get the blues to pulsate (like this, I guess ... http://digiassn.blogspot.com/2009/03/electronics-pulsingbreathing-led.html ... another 555 ;) )?

The reason for PIC. is to learn how to prog and use PICS :)

Also, I do envisage more circuity connected to it, with different timings (and none) ... that is why I want to learn how to separately-control blue versus red, at different timings, turn on/off/pulsate independently, within PIC etc.

Even just a small example, with two reds and one blue LED (at different frequencies/on/off/pulsate) would be great, if you do not fancy the whole prog :)

Again, great, TY.

CS
« Last Edit: November 14, 2011, 19:52:16 PM by Colonel Shofer »

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #25 on: November 14, 2011, 19:26:50 PM »
Post above modified.

TY

CS

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: Landing Pad Project (modding the LED sequencer)
« Reply #26 on: November 15, 2011, 07:45:27 AM »
yeap, you will need another 555.

as for the PIC, you can have 3 different pulsing rates like this:

Code: [Select]
MainLoop
 bsf Porta,0
 call Wait500mSec
 bsf Porta,1
 call Wait300mSec
 bsf Porta,2
 call Wait200mSec
 bcf Porta,0
 call Wait500mSec
 bcf Porta,1
 call Wait500mSec
 bcf Porta,2
 call Wait500mSec
 goto MainLoop

You will notice that you need 2 delay subroutines, one for 500mSec, one for 300 and one for 200. Either make them yourself, or download the "msecdelay16Mhz.inc" from one of my PIC projects.

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #27 on: November 15, 2011, 08:45:47 AM »
Hi K,

The problem with the 555 circuits, that I can find, is that they only drive one pulsating LED, so until I can sort out PWM, via the PIC (lots for the Arduino !!! ;) ), I will have to settle for flashing blues.

TY for the code, I will try and get my head around it and get a simulation going.

Cheers.

CS

kam

  • Administrator
  • Hero Member
  • *****
  • Posts: 1849
Re: Landing Pad Project (modding the LED sequencer)
« Reply #28 on: November 15, 2011, 19:31:41 PM »
let me get this straight. you want pulsing or breathing? I mean, you want the leds to turn on-off, or to fade-in fade-out? Why you mention the PWM?

Colonel Shofer

  • Guest
Re: Landing Pad Project (modding the LED sequencer)
« Reply #29 on: November 15, 2011, 20:04:31 PM »
Hi K,

Sorry, to me ...

(A) pulsating = pulsing = breathing,
(B) flashing = on/off.

PWM is the technique used for (A), in the Arduino community, and I would like to learn how to implement it in the PIC domain (I have not seen it done) and with 4 blue LEDS !!!.

Cheers.

CS
« Last Edit: November 15, 2011, 23:37:18 PM by Colonel Shofer »