Forum Replies Created
-
AuthorPosts
-
Amit JoshiParticipant
Prescaler is best way to speed up your ADC. Apart from that auto-triggering can be used. The advantage of auto-triggering is that there is no need to set ADSC bit again and again. Autotirigger mode activate the convsersion automatically. To learn this you can follow the link
March 27, 2011 at 8:33 am in reply to: frequency counter using 8051(with the help of external interrups: #5816Amit JoshiParticipantI think it is need to program TCON register by this controller can under stand the type of interrupt signal whether it is edge-trigger or level trigger.
Amit JoshiParticipantcan u explain it by giving example.
Amit JoshiParticipantyou are using high freq. range external crystal so CLKSEL3..0 will be 1111 and it is better to configure the controller at 16k ck+ 64 ms start-up time so SUT will be 11.
so overall fuse byte will be higher byte=0xFF, lower byte = 0x89
If u want to disable the JTAG, the fuse byte will be higher byte=0xFF, lower byte = 0xC9.
In try these configurations. if u asre not able to program the controller the SPIEN might be disabled. this bit enable/disables the serial programing of the controller. to enable it parallel programmer is needed.
Amit JoshiParticipantyou are using high freq. range external crystal so CLKSEL3..0 will be 1111 and it is better to configure the controller at 16k ck+ 64 ms start-up time so SUT will be 11.
so overall fuse byte will be higher byte=0xFF, lower byte = 0x89
If u want to disable the JTAG, the fuse byte will be higher byte=0xFF, lower byte = 0xC9.
In try these configurations. if u asre not able to program the controller the SPIEN might be disabled. this bit enable/disables the serial programing of the controller. to enable it parallel programmer is needed.
Amit JoshiParticipantCheck the voltage difference b/w ground and vcc pins. make it sure are you giving high voltage at EA/VPP pin
Amit JoshiParticipantthe humidity sensor gives the percentage humidity.take the percetage of received value considering 1023 as 100% humidity.
Amit JoshiParticipantConnect the TTL oputput pin to the serial port of the PC. don’t forget to use max232 between gps TTL output and PC. Use hyperterminal to check the output data format. according to this make the code and burn into controller . this time direct TTL output can be given to controller.
Amit JoshiParticipantas you get digital value you have to extract unit, decade and hundred position values. by dividing and taking remainder . for example
for(i=0;i<2;i++)
{
ar=value%10;
value=value/10;
}
for example if you get 123 you will found following values-
when i=0;
ar[0];
value=12;when i=1
ar[1]=2
value=1when i=2
ar[2]=1
value=0add 0x30 in ar values and print it one by one.
hope this method will work
Amit JoshiParticipantfirst find out the baud rate of the finger print module and set the USART baud rate accordingly.
store the whole 14 byte data into array and transmit it using USART. try the following link to learn usartAmit JoshiParticipantThe programming method of the atmega256 comparator is similar to atmega16.Find out the register of comparator from it’s datasheet and program it. If u r facing any particular problem then it can be solved.
Amit JoshiParticipanti think it is also can be done by
// for left shift
for(i=0;i<6;i++)
{
PORTx = (PORTx<<1);
_delay_ms(1000);
}
// for right shift
for(i=0;i<6;i++)
{
PORTx = (PORTx<<1);
_delay_ms(1000);
}
// for cicular shift
while(1)
{
PORTx = (PORTx<<1)|(PORTx>>7);
_delay_ms(1000);
}
Amit JoshiParticipantread this article fully this may help you.
Amit JoshiParticipanti am not getting what is system state? 8051 need 12 clock cycle for a machine cycle. and there are various instruction sets in 8051 assembly which need one ,two ,three or four machine cycles
Amit JoshiParticipantwhich assembler u r using? in asm51 u have give path of file and just press enter. it will genrate ur hex file
-
AuthorPosts