View previous topic :: View next topic |
Author |
Message |
ferdi
Joined: 11 Dec 2012 Posts: 3
|
Problem for pic16f877a with siemen tc35 gsm modem using ccs |
Posted: Tue Dec 11, 2012 1:25 am |
|
|
I can't really understand ccs code to write and anyone can help me share some knowledge. Now my problem is I don't know use which code to send AT command to my GSM modem.
can i know what is the use for printf(), kbhit(), putc()?? |
|
|
TMLtech
Joined: 20 Jul 2011 Posts: 21 Location: Finland
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9269 Location: Greensville,Ontario
|
|
Posted: Tue Dec 11, 2012 6:31 am |
|
|
...also pressing F11 while in your project will open up the CCS C 'help' screens! TONS of information, easily accessed that should answer 80% of your questions. The rest can be found in the examples CCS kindly supplies located in the EXAMPLES folder.Download the PDF datasheet for the PIC you're using,renaming it to the type of PIC,say PIC18F46k22.pdf instead of the xxxxx.pdf that Microchip uses.
Start with the simple '1Hz blinking LED' program, then to the 'Hello World' program.
Build upon what you create and observe.
Keep backups!
Learn to use the search engine of this forum.
The more 'hands on' code you do, the better programmer you will become.
Break down the project into small chunks or 'sub-programs'.
Comment almost every line of code! Comments are free(no code space used) and you'll appreciate them a week from now when you wonder WHY did I do that? ,or what does THIS do?
Try to use one PIC version.Currently I use the PIC18F46K22 in the 40DIP.Has lots of codespace, 2 UARTS,27 analog pins!,timers,etc.Yes, overkill for the 'simple' stuff.By using the same PIC all the time, you can quickly build upon code KNOWN to work from previous projects.Also you can make a 'common' PCB,again known to work.
I understand that English is not everyone's first language,so the 'learning curve' can be long and hard,but once you learn the basics, it is easy to create more powerful programs.
hth
jay |
|
|
ferdi
Joined: 11 Dec 2012 Posts: 3
|
|
Posted: Sat Jan 19, 2013 5:17 am |
|
|
may i know #use rs232 ( stream) is what mean?? Is it send the AT command into that stream that I assign?? |
|
|
asmboy
Joined: 20 Nov 2007 Posts: 2128 Location: albany ny
|
|
Posted: Sat Jan 19, 2013 8:06 am |
|
|
STREAM is only required when using more than ONE RS232 channel.
if only a single port is in use - no stream handle required. |
|
|
necati
Joined: 12 Sep 2003 Posts: 37 Location: istanbul
|
|
|
ferdi
Joined: 11 Dec 2012 Posts: 3
|
|
Posted: Sun Jan 20, 2013 1:37 am |
|
|
Noted.....thanks a lot^^ |
|
|
|