Author |
Message |
Topic: EEPROM read |
kazama
Replies: 2
Views: 3983
|
Forum: General CCS C Discussion Posted: Tue Jan 12, 2010 11:32 am Subject: EEPROM read |
//FRONT SENSOR DETECTION ALGORITHM
set_adc_channel(0);
delay_us(20);
val1=read_adc();
delay_us(20);
read_eeprom(0x2100);
... |
Topic: EEPROM programming |
kazama
Replies: 6
Views: 7800
|
Forum: General CCS C Discussion Posted: Sun Jan 03, 2010 10:19 am Subject: EEPROM programming |
So if I use 16f877a with eeprom data memory 256 bytes.. the range of address is 0 - 255. For the syntax write_eeprom(address,value); the address can be use in hex form or not? eg: write_eeprom(0x00,v ... |
Topic: EEPROM programming |
kazama
Replies: 6
Views: 7800
|
Forum: General CCS C Discussion Posted: Sat Jan 02, 2010 10:55 pm Subject: EEPROM programming |
Hello, I have a problem regarding EEPROM programming. I use CCS help section to search the write_eeprom() syntax. I want to know, do I need to set the bits for eeprom such as EEADR or any bits that ar ... |
Topic: ADC Interrupt |
kazama
Replies: 4
Views: 9811
|
Forum: General CCS C Discussion Posted: Sun Nov 15, 2009 5:57 pm Subject: ADC Interrupt |
Here are my code for the sensors
void adc(void)
{
while(true)
{
set_adc_channel(0);
delay_us(5);
val1=read_adc();
while (TXIF = ... |
Topic: ADC Interrupt |
kazama
Replies: 4
Views: 9811
|
Forum: General CCS C Discussion Posted: Sun Nov 15, 2009 5:46 am Subject: ADC Interrupt |
Hello, i have a question. i am doing obstacle robot project that use 3 sensor. I found that if 1 sensor sense the obstacle, the other sensors voltage value is not stable (both sensor will have a same ... |
Topic: eb500 bluetooth module (Updated With USART Code...Need help) |
kazama
Replies: 1
Views: 4712
|
Forum: General CCS C Discussion Posted: Wed Sep 16, 2009 2:49 am Subject: Here my code |
#include <16f877a.h>
#fuses hs,nowdt,noprotect,nolvp
#use delay (clock=20000000)
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7)
#byte TXSTA=0x98
#byte RC ... |
Topic: eb500 bluetooth module (Updated With USART Code...Need help) |
kazama
Replies: 1
Views: 4712
|
Forum: General CCS C Discussion Posted: Thu Sep 03, 2009 4:00 pm Subject: eb500 bluetooth module (Updated With USART Code...Need help) |
hi guys, I'm currently making the bluetooth integration with my robot after finished my sensor problem. I'm using this bluetooth
http://www.a7eng.com/products/bluetooth/productpages/eb500-ser.htm.
... |
Topic: code help needed |
kazama
Replies: 5
Views: 4985
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2009 2:26 am Subject: code help needed |
I got left and right sensor works. Can move now. But having a problem on front sensor which is RA0. To move the robot forward I use portc=0b00010001 and portc=0b00101000 to reverse it. But still canno ... |
Topic: code help needed |
kazama
Replies: 5
Views: 4985
|
Forum: General CCS C Discussion Posted: Wed Sep 02, 2009 12:03 am Subject: code help needed |
still can't work. only left wheel run. do i need to add all portc=something to all looping? |
Topic: code help needed |
kazama
Replies: 5
Views: 4985
|
Forum: General CCS C Discussion Posted: Tue Sep 01, 2009 9:19 am Subject: code help needed |
Hi guys, I need some help on my coding. The robot that I'm doing is slam robot. But now I need to fix the sensor problem. I think the coding is alright but, after I burned the program to the PIC, only ... |
|