Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 2nd October 2007, 07:51 PM   (permalink)
Quan
Guest
Question Question about Inchworm+

Hi I have question for you...

I have inchworm+ it looks good when I plug it in it turn on even if switch is on or off...

Is this supposed to happen...

Thanks...
  Reply With Quote
Old 2nd October 2007, 07:55 PM   (permalink)
Quan
Guest
Default

I plug ed in 9volt 1000milliamp adapter...

multimeter is broke I dont know what it is actually...

Is this ok...
  Reply With Quote
Old 2nd October 2007, 08:21 PM   (permalink)
3v0
Moderator
 
Blog Entries: 3
3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold
Default

Look at the schematics.

You will see that the switch controls power to the +5 (target power) on the ICSP connector. The LED is telling you that the Inchworm has power. It is OK.
3v0 is offline   Reply With Quote
Old 2nd October 2007, 08:32 PM   (permalink)
Quan
Guest
Default

Thanks...

I was nervous...

I look at schematic and see that it connects power to microcontroller...

How does target get 13 12 volt...
  Reply With Quote
Old 2nd October 2007, 08:51 PM   (permalink)
3v0
Moderator
 
Blog Entries: 3
3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold
Wink

The inchworm assembly instruction do a good job of covering that in the text. The max232 chip converts 5V to about +15V. A series of diode drops are used to get it down to where VPP should be. The 2nd switch is used to select between 12V and 13V. Note that the white lettering on the PCB is backwards. The 12 and 13 are interchanged.

There has been several thread where people needed help getting theirs working. Most are for the non+ version but it may be a good idea to read them. I am still quite willing to help but that may be faster.

3v0 is offline   Reply With Quote
Old 2nd October 2007, 08:57 PM   (permalink)
Quan
Guest
Default

So 16F 12F gets 12V...

18F and dsPIC get 13V...

Am I right...
  Reply With Quote
Old 2nd October 2007, 10:32 PM   (permalink)
3v0
Moderator
 
Blog Entries: 3
3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold3v0 is a splendid one to behold
Default

Quote:
Originally Posted by Quan
So 16F 12F gets 12V...

18F and dsPIC get 13V...

Am I right...
It is the other way around. From the assembly instructions...

Quote:
...and U3 a RS232
level converter with built in switched capacitor voltage doublers.
VPP > 12V is generated from 5V using the ST232s’ (MAX232) own
internal voltage doublers. Diode D5 and capacitor C6 act as part of a
voltage multiplier circuit. In a lossless circuit there would be
approximately 15V at the cathode of D5 but because of voltage drops
both internally to the ST232 and across D5 (approx 0.7V) the voltage is
actually closer to 14V. D6 rectifies and C12 filters the voltage down to approx 13.5 VDC, Q4 will reduce
VPP by another 0.6V. S1/J1 on the Inchworm+ will allow for setting a slightly lower VPP (using D7 as a
0.7V drop) for dsPICs & 18F PICs
.
3v0 is offline   Reply With Quote
Old 3rd October 2007, 01:44 AM   (permalink)
Quan
Guest
Default

Ok...

So I connect the 10 pin header to target chip and program and it doesnt need its own power source?

Inchworm+ provides the power for it?

On my inchworm, the voltage is correct by the switch...

What program should I write first...
  Reply With Quote
Old 3rd October 2007, 01:48 AM   (permalink)
Quan
Guest
Default

I find program... Called Hello World for inchworm ICD2...

I am use 16F628A I folo directions of sheet?

I am excited... Cant wait to program...

Krumlink is my email buddy from michigan, I from west coast...

He says sorry, he was mad... I help him out...

He is doing this project along with me...

Thanks...
  Reply With Quote
Old 3rd October 2007, 02:20 AM   (permalink)
Quan
Guest
Default

I wrote the code in and follow directions...

This pop up under MPLAB IDE 2

Code:
Auto-connect not enabled - Not connecting (Try enabling auto-connect on the ICD2 settings pages.)
ICDWarn0034: Please ensure that your system's serial FIFO buffers are disabled.
Connecting to MPLAB ICD 2
ICDWarn0054:  MPLAB IDE has lost communications with the MPLAB ICD 2.  Would you like to attempt to reconnect?
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to MPLAB ICD 2
ICDWarn0020: Invalid target device id (expected=0x83, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
...Passed
ICD0021: Unable to connect with MPLAB ICD 2
MPLAB ICD 2 Ready
ICDWarn0034: Please ensure that your system's serial FIFO buffers are disabled.
What to do?
  Reply With Quote
Old 3rd October 2007, 02:36 AM   (permalink)
Quan
Guest
Default

I have fixed it...

It reccognized it...

IT says this now:
Code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\MCC18\mpasm\mpasmwin.exe" /q /p16F628A "Hello World.asm" /l"Hello World.lst" /e"Hello World.err"
Warning[205] C:\A MPLAB\HELLO WORLD.ASM 2 : Found directive in column 1. (list)
Warning[205] C:\A MPLAB\HELLO WORLD.ASM 3 : Found directive in column 1. (include)
Error[105]   C:\A MPLAB\HELLO WORLD.ASM 3 : Cannot open file (Include File "p16f628A.inc" not found)
Error[111]   C:\A MPLAB\HELLO WORLD.ASM 4 : Missing symbol
Warning[205] C:\A MPLAB\HELLO WORLD.ASM 5 : Found directive in column 1. (org)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 6 : Found opcode in column 1. (bsf)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 6 : Symbol not previously defined (STATUS)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 6 : Symbol not previously defined (RP0)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 7 : Found opcode in column 1. (movlw)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 8 : Found opcode in column 1. (movwf)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 8 : Symbol not previously defined (OPTION_REG)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 9 : Found opcode in column 1. (movlw)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 10 : Found opcode in column 1. (movwf)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 10 : Symbol not previously defined (TRISB)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 11 : Found opcode in column 1. (bcf)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 11 : Symbol not previously defined (STATUS)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 11 : Symbol not previously defined (RP0)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 12 : Found opcode in column 1. (movlw)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 13 : Found opcode in column 1. (xorwf)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 13 : Symbol not previously defined (PORTB)
Warning[203] C:\A MPLAB\HELLO WORLD.ASM 14 : Found opcode in column 1. (sleep)
Warning[205] C:\A MPLAB\HELLO WORLD.ASM 15 : Found directive in column 1. (end)
Halting build on first failure as requested.
BUILD FAILED: Tue Oct 02 22:33:49 2007
I need your help please...

Thanks...
  Reply With Quote
Old 3rd October 2007, 02:52 AM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

You have to put tabs before almost all program lines except labels or comments.

Also make sure your FIFO buffers are off or it will give you connection errors.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 3rd October 2007, 02:57 AM   (permalink)
Quan
Guest
Default

how do i turn off fifo buffers...

It says this
Code:
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\MCC18\mpasm\mpasmwin.exe" /q /p16F628A "Hello World.asm" /l"Hello World.lst" /e"Hello World.err"
Error[105]   C:\A MPLAB\HELLO WORLD.ASM 3 : Cannot open file (Include File "p16F628A.inc" not found)
Error[111]   C:\A MPLAB\HELLO WORLD.ASM 4 : Missing symbol
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 6 : Symbol not previously defined (STATUS)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 6 : Symbol not previously defined (RP0)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 8 : Symbol not previously defined (OPTION_REG)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 10 : Symbol not previously defined (TRISB)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 11 : Symbol not previously defined (STATUS)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 11 : Symbol not previously defined (RP0)
Error[113]   C:\A MPLAB\HELLO WORLD.ASM 13 : Symbol not previously defined (PORTB)
Halting build on first failure as requested.
BUILD FAILED: Tue Oct 02 22:54:35 2007
  Reply With Quote
Old 3rd October 2007, 03:15 AM   (permalink)
Experienced Member
Pommie is a splendid one to beholdPommie is a splendid one to beholdPommie is a splendid one to beholdPommie is a splendid one to beholdPommie is a splendid one to beholdPommie is a splendid one to beholdPommie is a splendid one to beholdPommie is a splendid one to behold
Default

You have installed the C18 compiler and set the asm toolsuite path to point to the c18 assembler.

To fix this go into "Project/set language tool locations" click on the + next to "Microchip MPASM Toolsuite" then on + next to Executables and then on MPASM assembler. The path at the bottom will say something like C:\C18\.... Browse to the correct location - on my machine it is C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe.

It should now build correctly.

Mike.
Pommie is offline   Reply With Quote
Old 3rd October 2007, 04:45 AM   (permalink)
Experienced Member
 
monkeybiter will become famous soon enough
Default

Quote:
Krumlink is my email buddy from michigan, I from west coast...
i thought something smelled fishy about this 'new' member...
monkeybiter is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Capacitor Charge/Discharge question ThermalRunaway General Electronics Chat 23 1st June 2007 01:20 PM
Basic Transmission question CamNuge General Electronics Chat 2 8th March 2006 10:08 PM
High speed data logging question cubdh23 Micro Controllers 3 19th August 2004 11:54 AM
Data Logging question with high speed!!!! cubdh23 General Electronics Chat 4 16th August 2004 06:33 PM
PBX question waqar Electronic Projects Design/Ideas/Reviews 0 30th March 2003 06:21 PM



All times are GMT. The time now is 06:12 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.