cassetada, retiro o dito antes.

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
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