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 2017-05-23T10:36:57+00:00 contact@nospam.com hourly 1 2000-01-01T12:00+00:00 Keyboard 8051 ASM help http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65182 2017-05-23T10:36:57+00:00 rapushh Hello my friends, I'm doing a 8051 project using ASM language but I'm with issues in doing the software , i just want to press a number in the keyboard (4x3) and show it in the display (LM041L)Actual hardware: http://imgur.com/cN9c1BE Re: Hitech C in pro mode for pic16f http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65169 2017-05-23T10:36:57+00:00 ajay_bhargav I think you are asking in the wrong forum. We do not provide cracks or anything... Re: GSM based electricity theft identification http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65163 2017-05-23T10:36:57+00:00 ajay_bhargav You should start with something, We will help you reach to the end. So write something.. see tutorial section for LCD interfacing, serial communication etc. Ask questions when you get stuck. Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 2017-05-23T10:36:57+00:00 ajay_bhargav To me it looks like your development environment is not setup properly.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 licheeYou can try to reset your repo the the head and try to build again.# git reset --hardDid 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 Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 2017-05-23T10:36:57+00:00 ExperimenterUK Linux can be a minefield of make files, scripts and path settings.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. Re: XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174 2017-05-23T10:36:57+00:00 ExperimenterUK Can you provide me a demo of XAG-49 counter so that I can verify. UtsaviI 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. Re: XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174 2017-05-23T10:36:57+00:00 Utsavi HelloThanks 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. RegardsUtsavi Bharuchwala Re: XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174 2017-05-23T10:36:57+00:00 ExperimenterUK Just from reading the data sheet you seem to doing the right thing.> 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 ? XAG-49 Counter setting http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65174 2017-05-23T10:36:57+00:00 Utsavi HelloI 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?RegardsUtsavi Bharuchwala Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 2017-05-23T10:36:57+00:00 Samimash thank you for your reply friend 'cc1' is a file actuallywhole 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: ---------------------------------------- Re: ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 2017-05-23T10:36:57+00:00 ExperimenterUK I'm sure this is a compiler / Linux problem.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, includingupper 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 ? ERROR: build kernel Failed http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65171 2017-05-23T10:36:57+00:00 Samimash hello friendsi 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 saidbut 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 Failedis 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 electronicsthank you Re: Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 2017-05-23T10:36:57+00:00 east Hi, ExperimenterUKI 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. Hitech C in pro mode for pic16f http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65169 2017-05-23T10:36:57+00:00 raghuzala Hello, Can i have crack hi tech C compiler in pro mode for pic16f,????in lite mode there memory issues Re: Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 2017-05-23T10:36:57+00:00 ExperimenterUK We really need to see your full actual circuit.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 ? Re: Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 2017-05-23T10:36:57+00:00 east The picture is given below. Proteus Simulation is Different From Actual Circuit http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65166 2017-05-23T10:36:57+00:00 east Hello~all,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? GSM based electricity theft identification http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65163 2017-05-23T10:36:57+00:00 snazzy I am working on a project which is a GSM based electricity theft identification!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. Re: proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 2017-05-23T10:36:57+00:00 ExperimenterUK Sorry, that doesn't sound "normal".I think a re-install is needed. Re: proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 2017-05-23T10:36:57+00:00 Deepakvaishu Yes proteus is loaded ,with all projects.....Once I pressed the Run button, then the error window is shown. Re: proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 2017-05-23T10:36:57+00:00 ExperimenterUK Does Proteus load at all ?Does it only crash on certain projects ?You will probably have to re-install Proteus. proteus error... http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65157 2017-05-23T10:36:57+00:00 Deepakvaishu hello...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... Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 ExperimenterUK Thanks for the comment.Glad you got it working. Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 Deepakvaishu Thank you very much...Today I got the output for alphanumeric keypad, by refering to your code. It really helped me a lot Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 ExperimenterUK Is it initially assigned as '0', and then when the timer interrupt occurs then it is incremented ?? DeepakvaishuYes, the timer interrupt is called about 50 times a secondand 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++; } } Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 Deepakvaishu hello,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. Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 ExperimenterUK I have attached code showing one method you could use.It deals with timing, you will have to add the code to scan a matrix to read a key.


Attachment





main.zip








Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 Deepakvaishu I am using Keil and 8051 microcontroller Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 ExperimenterUK The best way is to use an interrupt to run the counter.What software are you using ? Re: keypad to type the text message http://www.8051projects.net/plugins/forum/forum_viewtopic.php?65143 2017-05-23T10:36:57+00:00 Deepakvaishu Hi,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.