Author Topic: Reading packets?  (Read 3681 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,703
  • Helpful? 173
    • 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

 


Get Your Ad Here

data_list