Sign in

username:

password:



Not a member?

Search LPC900_users



Search tips

Subscribe to LPC900_users



Sponsor

controlSUITE™ software
Comprehensive.
Intuitive.
Optimized.

Real-world software for real-time control. Details Here!

Ads

Discussion Groups

See Also

DSPFPGAElectronics

Discussion Groups | LPC900 | I thing you can help me! My LPC935 don't answer to me!!!

Find help, specifications and source code for the LPC900. The LPC900 challenges Microchip and AVR based on the worlds most popular 8-bit architecture the 80C51. With a 2-clock core the LPC900 series is a high performance, very flexible and low cost 8-bit microcontroller family. Designers using or interested in these devices are encouraged to share their know-how and ask questions.

I thing you can help me! My LPC935 don't answer to me!!! - =?iso-8859-1?B?RnJhbudvaXM=?= - Jun 16 19:18:11 2008

Hello,
I'm a new LPC935 user and for my first application, my microcontroller
BUG, where is the problem???
(Sorry for my bad English, I've some difficulties with this language)

Explanation:
First, I'm developing my program direct in assembler with =B5vision3.=20
It's a easy program to verify if my =B5C do it correctly but I've no
output :(
The program :
org 0000h
ljmp start
=09
org 000Bh
ljmp Timer0
=09=09
start: mov 0D6h,#8Eh ;TRIM : Clk at 7.373MHz divide by 14
mov 89h,#02h ;TMOD
mov 8Ch,#00h ;TH0
setb 0AFh ;EA
setb 0A9h ;ET0
setb 8Ch ;TR0 Start timer 0
=09=09
Fin: sjmp Fin

Timer0: cpl 0A3h ;port2.3
reti

And in the option of the project:
the device : P89LPC935
the target :
Xtal : 7.373 ; Memory Model : Small ; CRS : Small ; OS : none
the output : V Debug Information ; V Create HEX File
The another settings are not change

That is for =B5vision3 to get the .hex

Second I use Flash Magic (v4.20.1267) with 'FDI USB-ICP' :
1. Verify in ISP->Read Device Signature to check if the =B5C is
correctly connected
2. COM4; 89LPC935; FDI USB-ICP; 7.373.
3. I check Erase blocks used by Hex File
all another checkboxes are not cheked
4. I select the hex file
5. I start the programing
6. (I try with and without) ISP->Device Configuration and select the
RC oscillator.
It's all the step that I follow to programming my LPC935

After that I put 3.3V on Vss and 0V on VDD.
At the output of the port 2.3, I connect it with a 10k resistor to the
GND and I try without too but when I place the prob on the output
I've no signal except noise (GND is correctly connected!).

I don't know where I have a problem? I try different setting during
hours today and no results.
Do I forget a checkboxe somewhere? Or must I use a different way to
programme my =B5C

Hope someone can help me !
Thanks a lot,
Framst
------------------------------------



(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )


Re: I thing you can help me! My LPC935 don't answer to me!!! - Stefano Panichi - Jun 17 3:16:15 2008

--- In l...@yahoogroups.com, Fran=E7ois wrote:
>
> Hello,
> I'm a new LPC935 user and for my first application, my microcontroller
> BUG, where is the problem???
> (Sorry for my bad English, I've some difficulties with this language)
>=20
> Explanation:
> First, I'm developing my program direct in assembler with =B5vision3.=20
> It's a easy program to verify if my =B5C do it correctly but I've no
> output :(
> The program :
> org 0000h
> ljmp start
>=20=09
> org 000Bh
> ljmp Timer0
>=20=09=09
> start: mov 0D6h,#8Eh ;TRIM : Clk at 7.373MHz divide by 14
> mov 89h,#02h ;TMOD
> mov 8Ch,#00h ;TH0
> setb 0AFh ;EA
> setb 0A9h ;ET0
> setb 8Ch ;TR0 Start timer 0
>=20=09=09
> Fin: sjmp Fin
>=20
> Timer0: cpl 0A3h ;port2.3
> reti
>=20
> And in the option of the project:
> the device : P89LPC935
> the target :
> Xtal : 7.373 ; Memory Model : Small ; CRS : Small ; OS : none
> the output : V Debug Information ; V Create HEX File
> The another settings are not change
>=20
> That is for =B5vision3 to get the .hex
>=20
> Second I use Flash Magic (v4.20.1267) with 'FDI USB-ICP' :
> 1. Verify in ISP->Read Device Signature to check if the =B5C is
> correctly connected
> 2. COM4; 89LPC935; FDI USB-ICP; 7.373.
> 3. I check Erase blocks used by Hex File
> all another checkboxes are not cheked
> 4. I select the hex file
> 5. I start the programing
> 6. (I try with and without) ISP->Device Configuration and select the
> RC oscillator.
> It's all the step that I follow to programming my LPC935
>=20
> After that I put 3.3V on Vss and 0V on VDD.
> At the output of the port 2.3, I connect it with a 10k resistor to the
> GND and I try without too but when I place the prob on the output
> I've no signal except noise (GND is correctly connected!).
>=20
> I don't know where I have a problem? I try different setting during
> hours today and no results.
> Do I forget a checkboxe somewhere? Or must I use a different way to
> programme my =B5C
>=20
> Hope someone can help me !
> Thanks a lot,
> Framst
>

You forget to set the pin 2.3 as output pin: you must reset P2M1.3 and
set P2M2.3 bits respectively. At reset the pins are all set as inputs.

I suggest you to use Code Architect to make simple examples to learn
to use this micro: http://www.codearchitect.org/
------------------------------------



(You need to be a member of LPC900_users -- send a blank email to LPC900_users-subscribe@yahoogroups.com )