go_away

Author Topic: Reading packets?  (Read 2049 times)

0 Members and 1 Guest are viewing this topic.

Offline osnapTopic starter

  • Jr. Member
  • **
  • Posts: 24
  • Helpful? 0
Reading packets?
« on: August 12, 2007, 07:45:51 PM »
Hello, i have a question for anyone that can help:

I have an ATmega88 and im suppose to receive a 3-byte packet and each byte is 8 bits. This packet is going to be sent to a single pin, but i have limited knowledge of packets, i now i can read a pin's state high/low. But how do i read a byte? does it alternate high/low or something?

Thanks for help  :D

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,585
  • Helpful? 169
    • Society of Robots
Re: Reading packets?
« Reply #1 on: August 12, 2007, 07:57:10 PM »
Hmmmm what is sending the data?

I would assume the data is being sent to the UART of your ATmega88.

Im using AVRlib's rprintf code to do it . . .
http://www.mil.ufl.edu/~chrisarnold/components/microcontrollerBoard/AVR/avrlib/



edit: I cant spell 'sending' . . .
« Last Edit: August 12, 2007, 08:31:34 PM by Admin »

Offline osnapTopic starter

  • Jr. Member
  • **
  • Posts: 24
  • Helpful? 0
Re: Reading packets?
« Reply #2 on: August 12, 2007, 08:27:20 PM »
Its a PS/2 mouse, i wanna use its sensor

idk what UART is im going to read the datasheet about that, thank you <3

 

Related Topics

  Subject / Started by Replies Last post
5 Replies
1957 Views
Last post July 13, 2007, 08:15:21 PM
by HDL_CinC_Dragon
11 Replies
4219 Views
Last post January 15, 2008, 02:26:53 PM
by paulstreats
69 Replies
15745 Views
Last post November 07, 2008, 06:48:16 AM
by airman00
10 Replies
2027 Views
Last post February 26, 2009, 10:26:52 AM
by airman00


Get Your Ad Here

data_list