![]() | ![]() | ![]() |
| |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
![]() |
| | Tools |
| | #1 |
|
Hello people, I'm programming a ccd scanner via ATMega16. I'm using the following code to transmit the signal from the chip to the scanner but i'm getting absolutely no response: while (1){ putchar(0x1b); putchar(0x54); putchar(0x0d); // this code should buzz the scanner but it's not buzzing ![]() } the scanner's datasheet is at http://www.allelectronics.com/spec/BCS-84.pdf and the chip's datasheet is at http://www.atmel.com/dyn/resources/p...ts/doc2466.pdf would anyone please have a look at the datasheets and tell me what it is i might be doing wrong... I really appreciate the help! Hani A.
__________________ i\'m actually a novice in the robotics field and would love to get help to lunch my projects.. | |
| |
| | #2 |
|
Not enough information! Did you properly initialize the USART of the Mega8? (Baud rate, data length, parity, number of stop bits). Does it match the selected scanner's settings? Is the USART even enabled? | |
| |
| | #3 |
|
yes, everything you mentioned is checked. i use an oscilloscope to check the signal entering the input of the scanner and it's exactly what it requires. that's why i'm clueless! thanks for the reply
__________________ i\'m actually a novice in the robotics field and would love to get help to lunch my projects.. | |
| |
| | #4 | |
| Quote:
You will need to use an RS232 interface chip (Maxim, or LT or a lot of others) to convert the PC's RS232 level to TTL level as required by the scanner. If you plan only to transmit from the PC to the scanner, you can get away with a simple NPN level shifter/inverter. That way you can definitely determine where the problem lies. Jem | ||
| |
| | #5 |
|
hi jem, i really appreciate the help... but the site you showed doesn't work, do u know of another one?? thanks again!
__________________ i\'m actually a novice in the robotics field and would love to get help to lunch my projects.. | |
| |
| | #6 | |
| Quote:
Jem | ||
| |
|
| Thread Tools | |
| Display Modes | |
| |