Rickey's World of Microcontrollers & Microprocessors : Forum / posts http://www.8051projects.net/ Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet. en-gb © 2010 Rickey's World contact@nospam.com (Ajay Bhargav) contact@nospam.com (Ajay Bhargav) Tue, 23 May 2017 08:45:04 +0000 Tue, 23 May 2017 08:45:04 +0000 http://backend.userland.com/rss e107 (http://e107.org) hourly 1 60 Re: Hitech C in pro mode for pic16f http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65169 ajay_bhargav Fri, 19 May 2017 10:17:56 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65169 Re: GSM based electricity theft identification http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65163 ajay_bhargav Fri, 19 May 2017 10:16:26 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65163 Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 Did you clone the repo successfully? Any missing file or failed clone can lead to issue.
git clone https://github.com/friendlyarm/h3_lichee.git lichee

You can try to reset your repo the the head and try to build again.
# git reset --hard


Did you install all the dependency packages correctly?
sudo apt-get install gawk git gnupg flex bison gperf build-essential \
zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw32 tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386
]]>
ajay_bhargav Fri, 19 May 2017 07:01:54 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171
Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 If you find file 'cc1' on your system you might be able to see why it can't be found.
It might not even be included in the packages you downloaded.

I see that the page
"http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M1#Make_Your_Own_Debian"
offers pre-built images.
Honestly, I'd use one of them, and come back to "Make_Your_Own_Debian" when you
have a week or two to spare.]]>
ExperimenterUK Thu, 18 May 2017 23:28:56 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171
Re: XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174


Can you provide me a demo of XAG-49 counter so that I can verify.

Utsavi
I have never used the XAG-49 so can't provide code known to work on it.

What signal are you using as input to the counter ?

Can you provide your code and a circuit diagram.]]> ExperimenterUK Thu, 18 May 2017 23:18:43 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174 Re: XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174
Thanks for reply.

No the input pin is not faulty. I measured the frequency from input pin, which is OK. I also toggle Input pin.

> I read counter on every 500msec with help of my 1msec Timer 0, by incrementing variable upto 500 and after reset it.

Can you provide me a demo of XAG-49 counter so that I can verify.

Regards
Utsavi Bharuchwala





]]>
Utsavi Thu, 18 May 2017 05:57:34 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174
Re: XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174
> Do I required to use RTL1 and RTH1?
I don't think so.

Are the values in TH1 and TL1 correct ( or at least stable) if you use timer mode ( TMOD = 0x10).
How are you timing the 500msec ?
It seems most likely your counter input is faulty, where does it come from ?


]]>
ExperimenterUK Wed, 17 May 2017 19:38:16 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174
XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174
I am working with PXAG49KBA. In my project I used Timer0 as Timer and Timer1 as counter.

The timer in my case is working perfectly (1msec timer).

I want to use Counter to count external frequency. I set Counter 1 in 16 bit non auto reload mode (Set TMOD to 0x50). I cleared TH1 and TL1. Set TR1. On every 500msec I read TH1 and TL1 and clearing it. Every time I got garbage values.

Do I required to use RTL1 and RTH1?

Is there any register I need to set in XAG-49?

In my previous project I worked on P89C51RD2 and used Timer1 as Counter, which is working ok. From the reading, XAG-49 and P89C51RD2 have same settings.

But still my counter is not working. Also I set T1OE bit to 0. Still not succeed.

Any clue on this?

Regards
Utsavi Bharuchwala







]]>
Utsavi Wed, 17 May 2017 11:01:37 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174
Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 'cc1' is a file actually

whole code :

./build.sh -p sun8iw7p1 -b nanopi-h3
INFO: ----------------------------------------
INFO: build lichee ...
INFO: chip: sun8iw7p1
INFO: platform: linux
INFO: business: 
INFO: kernel: linux-3.4
INFO: board: nanopi-h3
INFO: output: out/sun8iw7p1/linux/nanopi-h3
INFO: ----------------------------------------
INFO: build kernel ...
INFO: prepare toolchain ...
INFO: skip kernel clean for nanopi-h3 Linux system.
Building kernel
/home/sami/lichee/linux-3.4/output/lib/modules/3.4.39-h3
  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
  CC      kernel/bounds.s
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
/home/sami/lichee/linux-3.4/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:986: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
make: *** Waiting for unfinished jobs....
  CC      scripts/mod/empty.o
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
scripts/Makefile.build:307: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:443: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:507: recipe for target 'scripts' failed
make: *** [scripts] Error 2
ERROR: build kernel Failed
INFO: use a fake rootfs.ext4.
1+0 records in
1+0 records out
1048576 bytes (1.0 MB, 1.0 MiB) copied, 0.00234644 s, 447 MB/s
mke2fs 1.43.4 (31-Jan-2017)

Filesystem too small for a journal
INFO: ----------------------------------------

INFO: build sun8iw7p1 linux  lichee OK

INFO: ----------------------------------------

]]>
Samimash Wed, 17 May 2017 04:37:17 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171
Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 In Linux, what you type is critical, every letter and space counts.
Directory paths are critical.
Did you set up the directories exactly as directed, same names, including
upper case and lower case letters ?
Have you switched to the right directory before starting to compile ?

You will probably get better help from a Linux support site.
If you want to keep trying here...
post a screen shot of exactly what you were doing when you got the message.
Clearly the compiler can't find the file "cc1" . Do you know what file that is ,
or is "cc1" a spelling mistake ?
]]>
ExperimenterUK Tue, 16 May 2017 17:05:52 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171
ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 i recently got a nanopi m1,i begin with the official documentation :"http://wiki.friendlyarm.com/wiki/index.php/NanoPi_M1#Make_Your_Own_Debian"
i downloaded the lichee source code and this toolchain:gcc-linaro-arm.tar.xz as the document said
but when i try to compile the source code,i got this error:
arm-linux-gnueabi-gcc: error trying to exec 'cc1': execvp: No such file or directory
ERROR: build kernel Failed

is it a compiler problem?
i am running Ubuntu 17.04 and i am a beginner in both arm processor and Linux environment but i have a background in electronics
thank you

]]>
Samimash Tue, 16 May 2017 13:26:10 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171
Re: Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 I have found reason. When I used small resistance instead of big resistance,The driving ability to produce sine-wave of ICI8038 is not enough,so the wave is mass. After I decrease the sine wave amplitude, the wave is normal.
Thank you for you help.
]]>
east Mon, 15 May 2017 09:55:45 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166
Hitech C in pro mode for pic16f http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65169 Can i have crack hi tech C compiler in pro mode for pic16f,????
in lite mode there memory issues]]>
raghuzala Sun, 14 May 2017 14:39:55 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65169
Re: Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 It occurs to me that a load of 20 milliohm would short out the signal.
In some case Proteus is more tolerant than the real thing,
and sometimes less tolerant.
What is the circuit for ?

]]>
ExperimenterUK Fri, 12 May 2017 19:41:12 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166
Re: Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166

]]>
east Fri, 12 May 2017 08:33:00 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166
Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 Can you help me answer my doubts?
The sinusoidal signal in the simulated picture produced by ICL8038( This is the data-sheet of LCL8038: http://www.kynix.com/uploadfiles/pdf0125/ICL8038.pdf ) in the actual circuit. The another two resistances I used in actual circuit are Constantan resistances --10milliohm. However the wave which tested by the real oscilloscope is so mass and it’s so different from the effect of simulation.


Does anyone know what it occurred?]]>
east Fri, 12 May 2017 08:27:56 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166
GSM based electricity theft identification http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65163 I am using SIM900A GSM module,a MAX232 chip(to interface GSM module) an ATMEL AT89S52 MCU,16×2 LCD, TTP223 touch sensor and a buzzer.
The main theme of this project is: if anyone tries to tamper the energy meter(in my case if someone touches the touch sensor) then the microcontroller receives the i/p sent by the touch sensor and then the buzzer starts to buzz and the MCU sends the GSM module the action to send a message stating " theft detected" to the predefined mobile no.(hard coded) and showing the same message in LCD.
i am stuck with the coding section! anyone up for rescue? i have attached the .jpg file of the circuit diagram.
]]>
snazzy Tue, 02 May 2017 19:32:17 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65163
Re: proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 I think a re-install is needed.]]> ExperimenterUK Mon, 01 May 2017 00:42:51 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 Re: proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 Deepakvaishu Fri, 28 Apr 2017 11:18:18 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 Re: proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 Does it only crash on certain projects ?
You will probably have to re-install Proteus.]]>
ExperimenterUK Fri, 28 Apr 2017 05:06:18 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157
proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 I am getting an error when I am trying to simulate my project on proteus...as...
"Could not open library"c:\program files(x86)\labcentre electronics\proteus 7 professional\MODELS\ACTIVE.LML" A serious error has occured and ISIS professional is in an unstable state...clickj abort to quit immediately or OK to save your work first...Do not assume that the saved copy will be loadable "...

what is the cause of this error?
ANd how to solve it??......Plz help...
]]>
Deepakvaishu Wed, 26 Apr 2017 06:59:45 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 Glad you got it working.
]]>
ExperimenterUK Tue, 18 Apr 2017 22:52:25 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 Today I got the output for alphanumeric keypad, by refering to your code. It really helped me a lot
]]>
Deepakvaishu Tue, 18 Apr 2017 06:19:59 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143


Is it initially assigned as '0', and then when the timer interrupt occurs then it is incremented ??

Deepakvaishu
Yes, the timer interrupt is called about 50 times a second
and increments keyTime.
The main program continuously monitors and resets keyTime.

This bit of code starts Timer 0 and enables its Interrupt.

ET0 = 1;                      /* Enable Timer 0 Interrupts */
TR0 = 1;                      /* Start Timer 0 Running */
EA = 1;                       /* Global Interrupt Enable */


This is the Timer 0 Interrupt handler.
It reloads the timer counters then increments keyTime
up to KEY_REPEAT_TIME (200).
void timer0_ISR (void) interrupt 1
{
	 TL0=0;  //reload timer
	// TH0=0xdc;  //values give 10mS period
	 TH0=0xbc;  //longer time for Proteus simulation
	
	if (keyTime < KEY_REPEAT_TIME)   //hold at limit
	{
		keyTime++; 
	}
}
]]>
ExperimenterUK Thu, 06 Apr 2017 17:38:11 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 Thanks for the attachment.
I have gone through your code . I did not got how the variable Keytime is updated.
Is it initially assigned as '0', and then when the timer interrupt occurs then it is incremented ??
plz help.

]]>
Deepakvaishu Thu, 06 Apr 2017 07:55:56 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 It deals with timing, you will have to add the code to
scan a matrix to read a key.


Attachment
]]>
ExperimenterUK Sat, 25 Mar 2017 21:49:54 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 Deepakvaishu Sat, 25 Mar 2017 07:59:59 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 What software are you using ?
]]>
ExperimenterUK Fri, 24 Mar 2017 18:05:54 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 I got that we should use timer......But I am a little bit confused that we can use timer to create the delay of particular time interval....But I really dont know , how to track the time ?
I am new in this field...should I use a timer as a counter to count the delay?
plz help.]]>
Deepakvaishu Fri, 24 Mar 2017 05:22:16 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143
Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 Use one of the timers to track time, say in 10mS counts.
Note the count each time a key is pressed.
Calculate the interval.
A short interval is to select values for the same key.
A long interval is a new selection.
]]>
ExperimenterUK Thu, 23 Mar 2017 21:14:30 +0000 http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143