Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,155,935 members, 7,828,266 topics. Date: Wednesday, 15 May 2024 at 07:34 AM

Princejude's Posts

Nairaland Forum / Princejude's Profile / Princejude's Posts

(1) (2) (3) (4) (5) (6) (7) (8) ... (12) (13) (14) (15) (16) (17) (18) (19) (20) (of 20 pages)

Programming / Re: Microcontrollers by princejude(m): 2:40pm On Jul 02, 2013
Tchalz: ...can't find this usb(pickit2) MC programmer.The
0nly I kn0w 0f is in the habit 0f h0arding kn0wledge.I need help 0n h0w t0 get it.Thanks guys! M s0 grateful t0 y0u guys f0r this thread
Programming / Re: Microcontrollers by princejude(m): 3:31pm On Jun 29, 2013
Have you tried it with any magnet? What it need is just magnetic field. We have the reed switch. I don't think it came with any special magnet
Celebrities / Re: SAD! Tonto Dikeh Needs Urgent HELP From Yaba Left | Posts Marijuana Photos by princejude(m): 11:10pm On Jun 27, 2013
hmmm someone wan kolo be dat
Programming / Re: Microcontrollers by princejude(m): 9:37pm On Jun 27, 2013
The above line of code will send the string


"Wellcome to Programming section
The best section in Nairaland"

to your serial port

"\r" is a carage return which will make the printing to start from next line
Programming / Re: Microcontrollers by princejude(m): 9:29pm On Jun 27, 2013
Now this is where the coding will begin.

If you look at the code window, the compiler has already wrote the setup section of the code for you.

You can type your code under the // TODO: USER CODE!! line.

Type this code:


printf("Wellcome to Programming Section \r The best section in Nairaland" ) ;
while(true)
{}


Click Compile >> Build ALL to build or compile the project.

Programming / Re: Microcontrollers by princejude(m): 9:01pm On Jun 27, 2013


In device select PIC16F887, In Oscillator Frequency type 4,000,000 because we are using 4MHz crystal.

Then change "High Speed Osc" to "Crystal Osc"

Click ok to open the code window as shown below:

Programming / Re: Microcontrollers by princejude(m): 8:22pm On Jun 27, 2013
Create a new folder for each project, open the ccs pic c software.



Click Project >> PIC Wizard. Then select your project folder.Type serial_test in your file name Click save to open next window.
Programming / Re: Microcontrollers by princejude(m): 7:39pm On Jun 27, 2013
If you have a PIC development kit : Connect the serial port connector (DB9) of your kit to the USB port of your Laptop through your USB-to -serial converter.

If you don't have a kit : construct the RS232 to TTL conversion circuit I posted earlier (yellow color) on a vero or project board with a PIC16F887 chip.

Then create a project as show below:
Programming / Re: Microcontrollers by princejude(m): 7:26pm On Jun 27, 2013
Ok back to the class:

After you have select your Com Port and baudrate then click ok to open the next window.

Programming / Re: Microcontrollers by princejude(m): 7:03pm On Jun 27, 2013
@Javanian
Thanks for your quick reply
Programming / Re: Microcontrollers by princejude(m): 8:24pm On Jun 26, 2013


Select your Com Port (same as shown in device manager)

Set your baudrate to 9600

Click ok
Programming / Re: Microcontrollers by princejude(m): 8:03pm On Jun 26, 2013
Ok let's continue...

If you are using laptop(without serial port), buy a usb-to-serial converter from any computer accessory shop near you. The converter always has a CD which contains its driver. Install the driver and open your "Device manager" to check its COM port.

Insert the usb-to-serial converter into your usb port.



Click ok to open the next window
Programming / Re: Microcontrollers by princejude(m): 9:52am On Jun 26, 2013
unbanned, username re-activated.
Programming / Re: Microcontrollers by princejude(m): 2:02pm On Jun 25, 2013
pjude: This people has banned me (princejude) in this thread.
Programming / Re: Microcontrollers by princejude(m): 7:40am On Jun 24, 2013
[center]Setting up of SIOW (Serial Input/Output (Monitor) Window)[/center]

1. Connect your PIC16F887 chip to the serial com port of PC. If you don't have serial com port on your PC, you can use any good USB to Serial converter. Install the USB to Serial driver.

2. Open your device manager, expand Ports(COM & LPT) to view your USB to serial port connection. It was connected to COM8



3. Open siow.exe from your taskbar. Then click ok to open the next window



4. Set the baud rate to 9600 click ok to open next window.

Programming / Re: Microcontrollers by princejude(m): 6:44pm On Jun 23, 2013
If you are doing any serial communication stuff, ensure that you have any of the serial comm software (such as hyperTerminal, tera term or CCS's built-in siow). In this project I will used CCS's SIOW.

To open siow, browse to the CCS installation folder: C/Program file/PICC/siow. Right-click siow and Pin to Taskbar. Then click from taskbar to open it.
Programming / Re: Microcontrollers by princejude(m): 5:54pm On Jun 23, 2013
RS232 to TTL conversion circuit

Programming / Re: Microcontrollers by princejude(m): 7:28am On Jun 23, 2013
hopefullman: Thanks.what of the usb comunication.is it different to that of rs232

USB communication is diferent from serial or rs232 comminication.
Right now we are on serial not usb. Usb may come later.
Programming / Re: Microcontrollers by princejude(m): 11:20am On Jun 22, 2013
I2C

The inter-integrated circuit (I2C) bus is designed for short-range communication between chips in the same system using a software addressing system. It requires only two signal wires and operates like a simplified local area network.
The I2C slave chips are attached to a two-wire bus, which is pulled up to logic 1 when idle. Passive slave devices have their register or location addresses determined by a combination of external input address code pins and fixed internal decoding. If several memory devices are connected to the bus, they can be mapped into a continuous address space. The master sends data in 8-bit blocks, with a synchronous clock pulse alongside each bit. As for SPI, the clock is derived from the instruction clock, up to 5 MHz at the maximum clock rate of 20 MHz.

To send a data byte, the master first sends a control code to set up the transfer, then the
8-bit or 10-bit address code, and finally the data. Each byte has a start and acknowledge bit, and each byte must be acknowledged before the next is sent, to improve reliability.



I2C Connection
Programming / Re: Microcontrollers by princejude(m): 11:15am On Jun 22, 2013
SPI

The serial peripheral interface (SPI) bus provides high-speed synchronous data exchange over relatively short distances (typically within a set of connected boards), using
a master/slave system with hardware slave selection. One processor must act as a master, generating the clock. Others act as slaves, using the master clock for timing the data send and receive. The slaves can be other microcontrollers or peripherals with an SPI interface. The SPI signals are

Serial Clock (SCK)

Serial Data In (SDI)

Serial Data Out (SDO)

Slave Select (!SS)


To transfer data, the master selects a slave device to talk to, by taking its SS line low. Eight data bits are then clocked in or out of the slave SPI shift register to or from the master. No start and stop bits are necessary, and it is much faster than RS232. The clock signal runs at the same speed as the master instruction clock, that is, 5MHz when the chip is running at the maximum 20 MHz (16 series MCUs).



SPI Connection
Programming / Re: Microcontrollers by princejude(m): 11:11am On Jun 22, 2013
LESSON 7: Serial Communication

Serial data connections are useful because only one or two signal wires are needed, compared with at least eight data lines for a parallel bus plus control signals. The typical PIC microcontroller offers a choice of serial interfaces. The best one for any given communication channel depends on the distance between nodes, the speed, and the number of hardware connections required.

Types of Serial Communication

USART
SPI
12C

USART

The universal synchronous/asynchronous receive transmit (USART) device is typically used in asynchronous mode to implement off-board, one-to-one connections. The term asynchronous means no separate clock signal is needed to time the data reception, so only a data send, data receive, and ground wires are needed. It is quick and simple to implement if a limited data bandwidth is acceptable.

A common application is connecting the PIC chip to a host PC for uploading data acquired by the MCU subsystem. The USART link can send data up to 100 meters by converting the signal to higher-voltage levels (typically 12V). The digital signal is inverted and shifted to become bipolar (symmetrical about 0V, line negative when inactive) for transmission.

The PIC 16F887 has a dedicated hardware RS232 port, but CCS C allows any pin to be set up as an RS232 port, providing functions to generate the signals in software. The basic form of the signal has 8 data bits and a stop and start bit. The bit period is set by the baud rate. A typical value is 9600 baud, which is about 10k bits per second. The bit period is then about 100μs, about 1 byte per millisecond, or 1K byte per second.

The data are transferred between shift registers operating at the same bit rate; the receiver has to be initialized to the same baud setting as the transmitter. Assuming we are looking at TTL level data, in the idle state, the line is high. When it goes low, the receiver clock is started, the data are sampled in the middle of each following data bit period, and data are shifted into the receive register



USART Operation
Programming / Re: Microcontrollers by princejude(m): 9:30am On Jun 21, 2013
I added the "org 00" line to your code and it compiled successfully. Note the org statement is used to initialize the code. Always include it in all your asm code.


list P = 16F84
STATUS equ 03h
TRISA equ 85h
PORTA equ 05h
COUNT1 equ 08h
COUNT2 equ 09h

org 00 ; sets the origin, the program starts running here.///// Very important ////

bsf STATUS, 5
movlw 00h
movwf TRISA
bcf STATUS, 5

Start movlw 02h
movwf PORTA

Loop1 decfsz COUNT1, 1
goto Loop1
decfsz COUNT2, 1
goto Loop1

movlw 00h
movwf PORTA

Loop2 decfsz COUNT1, 1
goto Loop2
decfsz COUNT2, 1
goto Loop2

goto Start

end
Programming / Re: Microcontrollers by princejude(m): 10:06pm On Jun 20, 2013
@ CogitoErgo

That is not a complete code. Post your complete code so that we may help you to debug it and I also want to tell you that I don't use asm frequently. The last project I did with asm is up to a year now. Why do you prefer asm? You can try this nice electronics site http://www.talkingelectronics.com/te_interactive_index.html They used asm in their PIC sections. Just scroll down the site to the PIC sections...
Programming / Re: Microcontrollers by princejude(m): 5:33pm On Jun 20, 2013
bosunsky:
pls, can u send me the list of all the basic tools i need, that can get me started, i'm very sorry i ask cos av not been following this thread b4.
pls send the list and phone no. to my mail :: abodunrin5@gmail.com...... i will be happy to see ur response thanks sir!!!!!!!!!smiley

It all depends on the type of microcontroller you want to learn with such as PIC, 8051 or AVR.
You will need the development kit and the programmer



For PIC microcontroller you will use any of this options:

Option one:
PIC development kit with built-in programmer and PIC16f887
including all the software and sample codes = N15,000 + N2000 shipment

Option two:
PIC development kit with PIC16f887
including all the software and sample codes = N10,000
PICKit2 programmer (cloned) = N5,500 + shipment = N2,000

Option three:
PIC development kit with PIC16f887
including all the software and sample codes = N10,000
PICkit3 Programmer = N7,000 + Shipment = N2000

For 8051 you will need :
8051 development kit with built-in programmer and AT89c51 or STC89c51 chip
including all the software and sample codes = N15,000 + shipment = N2000

For AVR you will need :
AVR development kit with ATmega16
including all the software and sample codes = N10,000
AVR ICSP Programmer = N7000 + shipment = N2000

Programming / Re: Microcontrollers by princejude(m): 2:50pm On Jun 20, 2013
bosunsky: Where in ibadan can i get all the tools needed to start dis microcontroller program, av been waiting for this all long!!!!!!

Send the list of the tools you need to microscale embedded(or you can post the list on this thread) and pay into their account( add N2000 for shipment), then they will send your tools in less than 48 hours after they have confirm your payment.
Programming / Re: Microcontrollers by princejude(m): 11:09am On Jun 17, 2013
Java_Prince: Mahn I will have to think over it. I really would love to be bulding robotic machines with my object oriented mindset. [font=Lucida Sans Unicode][/font]

May be you can try using Arduino with AVR microcontroller http://arduino.cc/en/Tutorial/HomePage. It looks like object oriented I have not use it before and you have to check where and how to get the Arduino development kit. If you want to switch to the normal embedded c,you can start from downloading the ebooks I have uploaded in this thread.
Programming / Re: Microcontrollers by princejude(m): 10:46am On Jun 17, 2013
hopefullman: @prince jude.pls hw can i get the pickit3 programer?my location is akure?dnt mail me 2ru nl cos dmail is dormant.my working mail is truetalk360@yahoo.com.thank u

I have sent you a mail. Once we confirm your payment you will get your parcel in the next 24 to 48 hrs
Programming / Re: Microcontrollers by princejude(m): 8:12pm On Jun 16, 2013
Java_Prince: Are you trying to say that only projects that has to programmed in java is such that must be controlled with GUI ...?

Yes we did one using c#. I don't know if there is any other way to use java with mcu. May be u can ask mr. google

1 Like

Programming / Re: Microcontrollers by princejude(m): 4:00am On Jun 16, 2013
Java_Prince: But my mentor has told me that java can also be used in the programming of microcontrolers.

You can use java or c# in microcontroller projects to design GUI(graphical user interface) if your project need to be controlled from a PC . Note that the java or c# is only used on the PC based GUI which will be interfaced to the microcontroller through serial comunication. The microcontroller must have its code written in another language such as c or asm
Software/Programmer Market / Re: I Need A Smart Card Reader/writer For Biometric ID Card System(urgent) by princejude(m): 1:51am On Jun 12, 2013
Smart card or electronic id card is still part of embedded system. Contact them and tell them what you want. I think they can help you in components sourcing,programming and building of the system. Open there facebook page

www.facebook.com/microscale

then scroll down, you will see one biometric attendance system as one of their product.
Software/Programmer Market / Re: I Need A Smart Card Reader/writer For Biometric ID Card System(urgent) by princejude(m): 3:32pm On Jun 11, 2013
Have you try Microscale at www.microscale-embedded.com ?
Programming / Re: What Are The Cost implications Of Creating A Customised Operating System? by princejude(m): 6:19pm On Jun 09, 2013
Otuabaroku:
Instead of that ,why not look at accomplishing your task using embedded system. You can easily achieve this using FPGA.The advantage of using embedded system is its speed and cost.

@ Otu... Have you use FPGA ?

(1) (2) (3) (4) (5) (6) (7) (8) ... (12) (13) (14) (15) (16) (17) (18) (19) (20) (of 20 pages)

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 47
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.