Página 1 de 1

cassetada, retiro o dito antes.

MensagemEnviado: 03 Jun 2010 01:59
por fabim
Psoal, outro dia estava eu discutindo acerca de numero de clocks por instrução e sei lá mais o que.
Estava desde segunda feira em salto grande, na empresa do Marco, ASLA, o controladores aqui do forum.

Estava dando umas aulas de CM3 pro funciotário dele, explicando algumas coisinhas lá no kit que ele tem.

Eu fiz um loop.

OBS: CPU@102mhz.


while(1){
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
}

Bati o osciloscopio no pino e observei 25.525mhz.

Quando observei que esta assimetrico os niveis!>!>!>!

Ai fiz o seguinte.

while(1){
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
LPC_GPIO0-FIOSET = 0x01;
LPC_GPIO0-FIOCLR = 0x01;
}

fiz o trigger absoluto, e fiz a média pela janela.
Depois eu fiz disparo unico...

MHZ = 51...... PQP

cara que doido, tem uma rotininha de SSP q o putex ja tinha pro ARM7 e nós só fizemos umas gambis pra funcionar no CM3.
EU fui lá e fiz umas fuçancias, e o clock da SPI subiu para 50mhz.... hehehe

MensagemEnviado: 04 Jun 2010 15:40
por RobL
Dá pra lembrar a configuração inicial do micro e colocar o asm gerado pelo compilador de cada caso?