Thursday, December 25, 2008

Run your first PIC16F84A program on simulator

You can start to test the PIC16F84A flasher program on the simulator.

The simulator is a program that simulates Microcontroller code execution and other electronic component behavior.

One good simulator I 've tried and I recommend is Labcenter Proteus 7.

You can install it and try the hardware components and software program and debug them for run-time errors and functioning errors. All this before building the real-world application on the board. This approach is very useful and can reduce developing time and frustration and eliminate situations such as you connect the circuit and get no action at all. You then wonder
what 's wrong. And you can get lost debugging hardware and software and don 't know where to
start from.

This introduction is to show the advantages of using the simulator before building your circuit board.

Let 's get started ..........

1- Install the simulator ( Labcenter Proteus 7 ).

2- Run the program ISIS.

3- Draw the components of the flasher application as in this screen-shot.




4- After you copy the code from the previous post into a file named Flasher.ASM, add the source

file as follows ;

- From the source menu , select Define Code Generation Tools ...

- Choose the MPASMWIN from the scroll menu as the screen-shot,





- Add the source form the source menu --- > Add/Remove Source files ...

and choose the code generation tools MPASMWIN and the source file Flasher.ASM




Now you have successfully configured the source file and code generation tools for code

compilation.

5- You can now compile the program by choosing the Source menu ---> Build All .

If every thing goes right, you should get the screen


6- You will notice that a Flaher.HEX file has been generated in the working folder.

7- Now double-click on the PIC16F84A component in your design , you get the window,




Choose the Flasher.HEX and set the Processor Clock Frequency to 4MHz.

8- Now press the play button to start debugging and running the program.



Now , you see the led flashing . Congratulations !!! The program is running.

We can start to build our first real-wold circuit....





If you like this blog you can support us by many ways:
   
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website outatime.tech.

Thank you for visiting our blog.

Wednesday, December 10, 2008

This is your first PIC16f84A program

HELLO WORLD

As in PC programming world, when you learn a new language , you start with the famous
"Hello World" program.

This program in Microcontroller is flashing a LED.

Here is the code:

;*************************************************
; Flasher.asm

list p=16f84 ; This is how you can comment
include "p16f84.inc"
org 0x00
goto start
org 0x20
start
bcf INTCON,7
movlw 0x00
bsf STATUS,5
movwf TRISB
bcf STATUS,5
again

movlw 0x80
movwf PORTB

call delay

movlw 0x00
movwf PORTB

call delay

goto again



delay
movlw 0x01
movwf 0x0e
loop3
movlw 0xfa
movwf 0x0d
loop2
movlw 0xfa
movwf 0x0c
loop1
decfsz 0x0c,1
goto loop1
decfsz 0x0d,1
goto loop2
decfsz 0x0e,1
goto loop3
return
end

;*********************************************************************

1 - Copy the above text and paste it in an empty text file and save it as Flasher.asm

2 - Install the MPLab program and search for the file MPASMWIN.EXE in its path.

3- Run the program. It looks like this :



Uncheck the case-sensitive option.

4 - Browse for the Flasher.asm file and press Assemble.

If every thing goes write , you will have the window :

Congratiulations, the assemble process is complete !!
The Flasher.hex file will be generated in the same directory of Flasher.asm


Note : If you like this blog ( or don't ) , please give me feedback by commenting. Thanks ...






If you like this blog you can support us by many ways:
   
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website outatime.tech.

Thank you for visiting our blog.

Monday, December 8, 2008

Getting Started With PIC16F84 Microcontroller Programming

Resources needed for a Quick jump-start :

For the simplicity of the learning process for the beginner, I 'll start with the most famous Microchip PIC16F84 ( which was the first uC I learned )

You need to prepare these stuff before start programming :

1- The target IC (the uC PIC 16F84A) and its Datasheet .


2- Programming circuit ( JDM programmer ) - you need to build it your self - or buy a Microchip PIC programmer.



3 - Loader program ( ICProg ) - you 'll need it if you use JDM programmer - , but if you buy a ready-made programmer , you will have the software with it.


4 - MPLab program ( to assemble ) the programs you write in Assembley .




5 - HiTec PICC ( to compile programs in C ) .






6 - Proteus 7.0 Simulator

















You can get all these stuff for FREE from the Internet.






If you like this blog you can support us by many ways:
   
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website outatime.tech.

Thank you for visiting our blog.

Sunday, December 7, 2008

Microcontroller Tutorial : PIC16f84A

I decided to start a Microcontroller Tutorial for beginners. If you like to learn about Microcontroller programming and embedded systems , this blog may be helpful.

Prerequisites:

All you need to know before start programming your microcontroller is basic programming knowledge, basic electronics and Boolean Algebra ( AND , OR & NOT gates ... ) .

And the first thing to know is:

What is the Microcontroller?

It is a smart IC that can be programmed to do some task. Unlike a typical IC which does a certain function that cannot be changed, the Microcontroller function is defined by its software code written on it. you can change the code when you want and thus change its function. Smart means it can decide and take actions according to its code.

So what 's the difference between Microcontroller(uC) and Microprocessor(uP) ??

uP needs some other devices to be able to work ( BIOS, RAM, I/O Ports , ... ) all these devices are other IC 's.

Although the uP is more general purpose than than the uC , but the fact that the uC contains all the required devices in one package ( EEPROM, RAM, IO Ports , ADC , UART , etc ... ) overcomes the limited abilities and small instruction set of the uC.






If you like this blog you can support us by many ways:
   
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website outatime.tech.

Thank you for visiting our blog.

Saturday, December 6, 2008

It all started with the computer

It all started with the computer


I started with the old computer AQUARIUS at the 80 's. It had Microsoft Basic on it. I learned programming in Basic. I then got my Pentium 1 at 90's.









I learned Microsoft DOS and Windows. Then I learned C language.

I got AMD PC at year 2000 and I learned more about PC hardware.

I also knew about Microcontrollers ( Microchip PIC , Atmel , Renesas ) .

I programmed Microcontrollers in Assembly and C.

At 2006 I got Toshiba Satellite Notebook.

This year, I joined the Renesas HTS contest. I submitted my project " Multichannel Oscilloscope" and guess what , I had the forth honored mention.








http://www.renesasrulz.com/thread/2225;jsessionid=7AFAE50480BD5DF2D4D3F616A03277EA?decorator=print&displayFullThread=true




If you like this blog you can support us by many ways:
   
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
  4. Visit our new website outatime.tech.

Thank you for visiting our blog.

Wednesday, March 12, 2008

Embedded Software in Egypt


Embedded software is one of the fast growing markets in Egypt. There are many multinational companies have opened software development offices in Egypt. There are also many companies established by Egyptian engineers. Also, there are many students and engineers who are working independently in software development for embedded systems. I have a growing company which I called MicroMonitor.

As an Egyptian engineer, I invite more companies to invest in this growing industry in Egypt.






Here is a List of embedded systems companies in Egypt :



1sheeld

http://www.1sheeld.com/






AlManar for Electronic Systems http://www.almanar.com.eg/index.html







ATMEL Egypt

http://www.atmel.com/products/digital-broadcast/

Design Center 11 Markaz El-maalomat St., Block 1157 Masaken Sheraton Heliopolis Cairo 11361, Egypt 
Phone: +20 2 2696 1700 Fax: +20 2 2696 1777







avelabs

http://www.avelabs.com
avelabs LLC. 31 EL Obour Buildings,
Salah Salem St.,
Cairo, Egypt. (directions on map)
Telephone: +20 100 0668 7922
e-mail: info@avelabs.com














Axxceleraegypt


http://www.axxceleraegypt.com/contact-us/

Tel : +2 02 27507868.
Tel : +2 02 27507869.                                 
Tel : +1-(804)-915-6333.
Tel : +1-(804)-545-2899.
Fax : +2 02 27507868 (ext 102).      

info@axxceleraegypt.com.      

29 Corniche El Nil – Borg Omar Ibn Alkhattab
Maadi, Cairo 11431 
Egypt










BadrIT ( Mobile Applications )
http://www.badrit.com/
Badr for Information Technology
2 Ibrahiem Ragi Street, Roshdie
Alexandria, Egypt
PO Box 21531



Baccah
http://www.baccah.ca/


Bird ICT ( Mobile Applications )
http://www.birdict.com/












Brilliance Tech

http://www.brilliancetech.net/


Address

28 Kabool Street, from Makram Ebaid, behind Fresh, Nasr City, Cairo, Egypt.










Edge Technology - Egypt

http://www.edge-techno.com

33 Al-Madrasa Al-Qawmia st.
El-Manial - Cairo - Egypt
11451
www.edge-techno.com
info@edge-techno.com
+202 236 39351
+202 236 39351



Elsewedy Electrometer Egypt
http://www.sewedy.com.eg/


Engineering Office for Integrated Projects - EOIP
http://eoip-egypt.com/en/index.aspx?id=1






GST Egypt

http://www.gstegypt.com/contactus


Address:

  • Administration :
    21 Ayoub Buildings, Hassan Aflaton St.
    Ard El-Golf, Heliopolis,
    Cairo | Egypt.
    Postal Code : 11341.
  • Phone: +202 24152486, +202 24186463, +202 24186583
  • Hot Line: +201000112348  (From 9:00 AM to 5:30 PM)
  • Fax: +202 24186583
  • E-mail : inquiry@gstegypt.com






Hyper Embedded Systems
http://www.hyperes.com

Tel/Fax: (203) 544 2437 Tel: 2 0123346577
Hyper Embedded Systems
28 El-Deer Street,
Cleopatra,
Alexandria, Egypt E-mail: sales@hyperes.com









IDACO Egypt

http://www.idaco-egypt.com/index.php/contacts


Tel: (+20-2) 38206461 & (+20-2) 38206539 & (+20-2) 38206077
Fax: (+20-2) 38206460
Address:  3rd Industrial Zone – No. 243 / 17 – St. 36 – 6th October City - Egypt
P.O.Box: 61, Postal Code: 12566


















Intelligent Services Solutions (ISS)

http://www.issholding.com



Infinity Integrated Systems

http://infi-systems.com/contactus.html

Address : 1809, Street 41, District no.3, 6th of October City
Tele/Fax : +20(2) 3838 2497
Mobile : +2012 877 95555
Mobile2: +2012 877 95555
Email : info@infi-systems.com







Lampa Tronics.


http://lampatronics.com/contact-us/

Mansoura, Egypt.
(+2) 01129514640





MasrTec For Embedded Systems

Name: MasrTec for Embedded Systems
Contact : Mr. Hassan Abdelaziz
Street : 4 Eltawhid St, From Elhadid We Elsolb St.
City : Alexandria
Country : Egypt
Telephone : 002-03-4396450
Mobile : 0020102544516
Fax : 002-03-4399575





Mazid Labs - Egypt


98 Emtdad El-Amal Building
3rd floor - flat 32
Autostrad – Maadi
Cairo - Egypt

www.mazidlabs.com
info@mazidlabs.com
+201116501214
+202 27001552




MEMS-Vision

https://www.mems-vision.com/orders-requests/contact-us/
Egypt
2 Extension of Abdel-Hameed Badawy St.
Square #1123, Suite # 34
P.O. Box # 75, Sheraton-Heliopolis
Cairo 11799, Egypt
Tel: +202 2269 0652
E-mail







Mentor Graphics Egypt

http://www.mentor.com/

78, El-Nozha St., El-Sabaa Emarat Sq.
Heliopolis,
Cairo
Egypt
Phone : ‎+20 2 24141306(6 lines)
Fax : ‎+20 2 24186945


MTSE

http://www.mtse.com.eg/En/index.html

Address : 7 Amin Annis St., 4th Section, Heliopolis, Cairo.
Tel : (02) 2903160 - (02) 4147507
Fax : (02) 2903160
Postal Code: 11341
E-mail : info@mtse.com.eg
Sales : sales@mtse.com.eg




Newport Media

http://www.newportmediainc.com

Newport Media Inc. Egypt Design Center
11 Markaz El-maalomat St., block 1157
Masaken Sheraton Heliopolis
Cairo 11361
Egypt
Phone: +20 2 2696 1700
Fax: +20 2 2696 1777



Nori

http://www.nori-egy.com/contact-us.html


  • 0111-82-95-193
  • 12 Al-Naser St.  Al-Hai EL-Asher, Naser City

Qoudra

http://qoudra.com/

https://www.linkedin.com/company/qoudra

Info@qoudra.com



QuinDev ( Mobile Applications )

http://www.quindev.com

Saba-Basha, 38 Mostafa Abo Hiaf
Alexandria, Egypt.
(203) 585-8270 or (203) 584-5313



Sheimymicro

http://sheimymicro.freehostia.com/




SilMinds
http://www.silminds.com
Badr Tower, 56 Misr-Helwan Road, Maadi
Helwan
Egypt
11431

+202 275 3040 1

floor 6, app 14





Si-Ware Systems

http://www.si-ware.com









SMA-Tech

http://www.smatechonline.com/


Alexandria





Smartec-Group ( Training and courses )

http://smartec-group.com
152 First region - second district
6 October City
Egypt
12451

info@smartec-group.com
+20 2 383 634 98

+20 2 383 561 67










SySDsoft
http://www.sysdsoft.com/

Alexandria: http://wikimapia.org/6755233/SySDSoft-Alexandria

Cairo : http://wikimapia.org/3748052/SySDSoft-s-Villa



Tahackom

http://www.tahackom.com
mohamed.mokhtar@tahackom.com
mazen.faiter@tahackom.com
Or call

0100555043
0105080492






Tarabay Egypt

http://www.tarabayegypt.com


Valeo

http://www.valeo.com/en/home/the-group/global-presence.html

http://www.valeoservice.com/html/egypt/en/
VIAS EGYPT -Valeo InterBranch Automotive Software-
SMART VILLAGE, Building B124, Tower 2, Floor 1,
Cairo-Alexandria Desert Road Km 28, PO Box 99 GIZA EGYPT
Cairo
Tel : 20 235 38 0500
Fax : 20 235 38 0600





Embedded Systems components in Egypt

Embedded Systems Components Stores in Egypt


Places to buy Microcontrollers and Electronics in Egypt:


Alexandria:

Hamada Electronics حمادة ألكترونيكس

Naby Danial St. - Mahatat Misr شارع النبى دانيال - محطة مصر


Robota Egypt

http://www.robota-eg.com/











Cairo :

 Al Amir Electronics

http://www.ekt2.com/

46 El Falaki St.
Bab El Louk, Cairo
Tel: 02-23929789, 012-9379569
Fax: 02-23929789






Alexandria and Cairo

Future Electronics Egypt

(Arduino Egypt)


http://www.fut-electronics.com/


Contact Us

Cairo: 2 Elsarayat St., Abdo Basha Sq., Abbasia.
Alexandria59 Mostafta Kamel Street, Flemeng 
 Egypt
Tel:      
  • 202-26825325 (Technical Support From 10am to 5 pm)
  • 202-29222060 (Sales - Cairo)
  • 203-5430627 (Sales - Alex)
  • 0111-0051494 (Info)      
E-mail:  orders@fut-electronics.com
              info@fut-electronics.com
فيوتشر اليكترونيكس ايجيبت (اردوينو مصر)
القاهرة
٢ شارع السرايات- ميدان عبده باشا- العباسية
امام هندسة عين شمس- فوق مكتب بريد العباسيه 
الاسكندرية:
٥٩ شارع مصطفي كامل- فلمنج بجوار كلية  التربية بنات    
مواعيد العمل : جميع ايام الاسبوع من١٠ص الي ٩م (عدا الجمعه)



Grand Solutions Components

http://www.gs.com.eg/
HOT LINE : +2 01000 15 80 80
Land Line : +2 02 2414 33 44
FAX : +2 02 2414 23 62
Address : 11 Hassan Aflaton St. Ayoub Buildings, Ard El-Golf, Nasr City, PO 11341, Cairo, Egypt




Mechato Store

http://www.mechato-egy.com


Qafeer Makerspace Branch :
11th District, El Mehwar El Markazi Street, Block .66, Flat .2,
6th October City






Megatronics
http://www.megatronics-eg.com/







Ram Electronics

http://www.ram.com.eg

http://ram-e-shop.com

23 Abd El Salam Areef St., El Falaky Electronic Center , Shop 18 , El Tahreer
Cairo, Egypt.
Tel: +202 - 3918961
Fax: +202 - 7924854



Mansoura:



Egyptuino 





Online shop :



Microcontroller & Embedded Systems Courses :


ِAMIT 

http://amit-learning.com/diplomas/embedded-systems.php



ANZMA
Embedded Systems Diplomas
http://anzma.com/


BrightSkies Technologies

http://www.brightskiesinc.com/contacts.php




Computek Training Center


http://www.computekeg.com/index.php/contact-us




Jelecom Egypt

http://www.jelecom.com


NTI National Telecommunications Institute

http://www.ntiegypt.sci.eg

In the communications electronics section

Pi-Technologies

http://www.PiTechnologies.net




SGEC Group


http://sgecgroup.com/index.php/contact-us

Contact us

SGEC Training Center
Address:
Head Office
93 Abdelaziz Al-Soud,El-Manial,above of larien ,Second Floor -Cairo-Egypt
Second branch
Faculty of engineering, Cairo university.




Software Engineering Competence Center (SECC)

http://www.secc.org.eg/Contact%20Us.asp



TIEC 

http://tiec.gov.eg/en-us/Centers/EIC/Pages/default1.aspx?cid=2



Track IT Training Academy

http://www.trackitacademy.com/contact/





Note for dear visitors :

Do you know that the main traffic source for this blog is the
Embedded Systems Companies in Egypt ?

If you know any resources ( Companies names , Websites , Institutes , Courses or Vendors ) for Embedded Systems in Egypt , just post a comment for it and I add it here. Thank you all for valuable comments and feedback.

Thanks to all visitor from all of the world.


If you want to buy kits for Embedded Systems learning , contact me.

If you have kits that you want to sell , you can also contact me.

If you need custom made kits for training purpose , please contact me.











If you like this blog you can support us by many ways:
   
   1. Leave comments stating your point of view about this article.

   2. Buy our book on Amazon Learn By Making.

   3. Click on links of our sponsors without adding any extra cost on you if you make purchase from them. Actually, many of these offers are totally free.
This means that you can enjoy something for free and still support our blog to keep posting useful stuff.



This is the well-know Amazon Kindle platform. If you sign up for the free reader from Amazon to read any book, we get commission. 
There are many useful book for free on Amazon Kindle. Even you can find best sellers offered for free on Kindle format.
The best part is you can have the application on any platform. You can even read any book without installing any application by using Amazon Cloud-Reader on your browser.

You can join Amazon Kindle for 30 days free to have access to many paid book for free. You can cancel you subscription anytime.

The Amazon Prime is a special paid service from Amazon that offers good promotions and one-day free shipment for Amazon Shoppers. You can try this service for 30 days. You can cancel you subscription anytime.

Audible is the audio books website from Amazon. Many Kindle books are sold on Audible. You can try this service for free and get 2 free book. You can cancel you subscription anytime.

If you have a new baby borne or expecting one, you can create your free baby registry to easily save products and get offers and promotions on baby requirements.

  4. Visit our new website outatime.tech.

Thank you for visiting our blog.