cancel
Showing results for 
Search instead for 
Did you mean: 

ICP Connector

mailtoarup
Associate II
Posted on December 15, 2003 at 08:17

ICP Connector

8 REPLIES 8
mailtoarup
Associate II
Posted on December 08, 2003 at 00:38

hello!

i m using an measurment application using ST72F264 microcontroller.Now i want to program this micro on my application board thro INDART-ST72F264 programmer from SOFTEC via ICP connector.Now I have to arrange 10-pin connector on my app. board to program with Indart-st72f264.

I m connecting a 8 MHz crystal between osc1 & osc2 pin.

10 pin connection is as follows :

ICCCLK & ICCDATA is connected to Microcontroller PA0/ICCCLK pin and PA1/ICCDATA respectively via two 4.7k resistor.

1,3,5 is shorted to GND.

RESET pin to RESET pin of Microcontroller.

ICCSEL pin to GND thro a 10k resistor.

Pin no 7 to Vcc(5 v)

pin no: 10 (no connection).

now tell me where to connect pin no:9(OSC_CLK) ??

will it be OSC1 or OSC2 pin of Mirocontroller..

And can this arrangement will serve my purpose??

any suggestion pls??

thanks,

arup

jatin
Associate II
Posted on December 08, 2003 at 06:37

You have to connect the pin 9 (OSC_CLK) to the OSC1 pin of the controller. But you have to put the jumper setting such that you can either use the OSC_CLK or the crystal for programming. It is because if the ICP is disable in the option bytes then you can not use the crystal for pragramming then you can connect the OSC1 pin to the pin 9 of the connector.

Feel free to ask incase you feel any problem!

mailtoarup
Associate II
Posted on December 08, 2003 at 08:52

hai jatin,

thanks for the help .But i am not getting your answer .

In Softec's Indart ST7-ST7 Visual Debug editor i found Osc Type selection there are four option .I think i should select ''External Source'' in Osc Type selection.If i use crystal between osc1 & osc2 pins of Microcontroller,should i need to connect OSC_CLK(pin no 9)pin of ICP CONNECTOR to OSC1 pin of microcontroller??..

can u tell me what is significance of ICCDATA & ICCCLK line.what is the principle?? as i am new to this field pl tell me in detail.thanks,

arup
jatin
Associate II
Posted on December 09, 2003 at 03:16

Please note that ''external source'' and ''external resonator'' are different.

1/ The first means that you provide a clock on the OSC1 pin

2/ The second is that you provide crystal

If you select external source then you have to provide a clock on OSC1, which you can do by either

1/ Connecting freequency generator to this pin or

2/ connecting this pin to pin 9 of the ICC connector

The external source is used

1/ If you are in the option byte disable/ignore mode

2/ If you are in option byte enable mode and the device option byte is programmed with ''external source'' option

External resonator will be used only if you are in option byte enable/use mode with the device option bytes programmed with ''external resonator'' option.

Please see the following documentation :

1/ inDART documentation about option byte settings

2/ ICC Protocol Reference manual (downloadable from the same site.

mailtoarup
Associate II
Posted on December 10, 2003 at 03:50

hi jatin,

Thank u again.

Now what i learn is that :

1>

if i use a Crystal of 8 MHZ between OSC1 & OSC2.And if i connect

OSC_CLK pin of ICP connector to OSC1 pin.I can choose ''RESONATOR

OSCILLATOR'' in OSCTYPE in Edit Option Byte Menu,provided i select

use optionbyte in ICC MODE ENTRY.Inthat case for ICC programming and debugging Crystal connected between osc1 & osc2 will be used instead of OSC_CLK.if i select ''EXTERNAL SOURCE'' in OSCTYPE then OSC_CLK will be selected.

2>

And given that i have connected a 8 MHZ crystal between OSC1 & OSC2 pin of ST7,then is it necessary to connect OSC_CLK pin to OSC1 pin.i feel not to connect.or it should be connected and while selecting OSC TYPE i have to select RESONATOR OSCILLATOR only.

pls tell me what i stated(as i have learned) is correct or not.

if u find anything incorrect pls clarify.

as u said earlier i can't use jumper on my board.

thanks & regards,

Arup

jatin
Associate II
Posted on December 10, 2003 at 08:03

1/ You can't connect both the pin 9 of the ICP connector and the crystal to the OSC1 pin. Just selecting the ''resonator oscillator and option byte enable'' , you can't ignore the clock coming from pin9. Thats the reason to put the jumper setting.

2/ Jumper should be connected, because during the programming time, the previous option byte settings are taken into account. So if it is not resonator oscillator( which may not be the default setting) then you can use clock from pin9 if the jumper is put in between.
mailtoarup
Associate II
Posted on December 13, 2003 at 04:16

sir,

Thank you again for the help.

i want to take guarntee from you that if i use a crystal between osc1 & osc2,and select ''resonator oscillator'' option in ''EDIT OPTION BYTE'' menu,then shall i need to connect ocs_clk pin(pin 9 of ICP) to osc1 pin of Microcontroller..If i don't connect this pin no:9 to osc1 then will it be a problem??

pls ..

thanks,

arup
shreya
Associate II
Posted on December 15, 2003 at 08:17

Hi,

The connection of pin 9 with OSC1 is to enable a user to communicate with a device in which he is unaware of the option byte settings. Consider a case :

1/ you have a new device on your board

2/ there is no connection between OSC1-pin9

3/ you do not know the option byte settings

You enter debug and get a communication error. Even if you select resonator oscillator in ''Edit option bytes'' and provide the same, the option bytes in the device have not been changed since the communication failed.

What you have to do :

1/ Say ''Ignore option byte settings'' - As soon as you say this, you need the OSC1-pin9 connection.

2/ Use datablaze to program your option bytes (the ones selected in ''Edit option bytes''

3/ Go into debug the next time with ''Use option bytes'' -> Now the device is running on resonator and you don't need the OSC1-pin9 connections after this.

Hence, unless you connect the osc1-pin9 the first time, you may not be able to communicate with the device.