View previous topic :: View next topic |
Author |
Message |
azharhasbi
Joined: 16 Jun 2013 Posts: 8
|
Posted: Wed Jun 19, 2013 6:08 pm Post subject: have a request for you dear engineers can anyone help me |
|
|
have a request for you dear engineers can anyone help me to.it's for AVR atmega8535 chip thanks a lot.
#define RST PORTD.3
#define msg3 "$PSRF103,03,00,00,01*"
(BASCOM-AVR version : 2.0.7.6 ) |
|
Back to top |
|
|
kimmi
Joined: 24 Feb 2006 Posts: 1922 Location: Denmark
|
Posted: Wed Jun 19, 2013 6:24 pm Post subject: |
|
|
Hi,
One way is :
Code: | '#define Rst Portd.3
Rst Alias Portd.3
'REMEMBER TO CONFIG Portd.3 AS INPUT OR OUTPUT
'#define Msg3 "$PSRF103,03,00,00,01*"
Const Msg3 = "$PSRF103,03,00,00,01*" |
_________________ / Kim
Last edited by kimmi on Wed Jun 19, 2013 6:31 pm; edited 2 times in total |
|
Back to top |
|
|
azharhasbi
Joined: 16 Jun 2013 Posts: 8
|
Posted: Wed Jun 19, 2013 6:26 pm Post subject: thanks kimmi |
|
|
thanks kimmi |
|
Back to top |
|
|
kimmi
Joined: 24 Feb 2006 Posts: 1922 Location: Denmark
|
Posted: Wed Jun 19, 2013 6:31 pm Post subject: |
|
|
also check this topic for more info _________________ / Kim |
|
Back to top |
|
|
azharhasbi
Joined: 16 Jun 2013 Posts: 8
|
Posted: Wed Jun 19, 2013 7:02 pm Post subject: please help kimmi |
|
|
#ifndef RXC
#define RXC 7
#endif
#define FRAMING_ERROR (1<<FE)
i want to conver this program C to bascom can anyone help me to.it's for AVR atmega8535 chip thanks a lot
#ifndef RXC
#define RXC 7
#endif
#define FRAMING_ERROR (1<<FE)
if ((status & (FRAMING_ERROR | PARITY_ERROR | DATA_OVERRUN))==0)
{
rx_buffer[rx_wr_index++]=data;
#if RX_BUFFER_SIZE == 256
// special case for receiver buffer size=256
if (++rx_counter == 0) rx_buffer_overflow=1;
#else
if ((msg[0] != 'G')||(msg[1] != 'P')||(msg[2] != 'G')||(msg[3] != 'G')||(msg[4] != 'A')) valid = 0;
xuart=0; |
|
Back to top |
|
|
kimmi
Joined: 24 Feb 2006 Posts: 1922 Location: Denmark
|
Posted: Sat Jun 22, 2013 10:44 am Post subject: |
|
|
Hi azharhasbi,
Do not post same quistion in all forums
your topic is not bascom so use this topic and this forum
No need to start a new topic use this , _________________ / Kim |
|
Back to top |
|
|
|