WiFi (Wireless Fidelity) is the certification of WLAN (Wireless Lan). WLAN is a wireless interconnection technology by which personal computers, handheld devices and other terminals are connected, which uses a set of global standards IEEE 802.11. Unlike mobile phones, the equipment which is in accordance with IEEE 802.11 will work in all over the world. With appearing faster and more reliable 802.11n standard, it is to develop that WiFi is widely used in handheld. Therefore, developing a WiFi chip which can be used in the handheld devices seems necessary. The studies of WiFi chip are currently focused on baseband, MAC (Medium Access Control) and RF (Radio Freqency) and other hardware. However, with more complex WiFi technology and more complexity and integrated chip, the proportion of embedded software is also growing. It requires a higher level of system abstraction and a cooperative design of hardware and software. It is the reason that we study implementations of the IEEE 802.11 protocol, and design and implement a firmware based on handheld devices for WiFi chip.The main line of the thesis is to achieve protocol. In accordance with the IEEE 802.11b/g/n/e standard, combined with the current structure of a typical WiFi chip, and integrated WiFi phone system structure, this thesis firstly analyzes characters of WiFi technology in handheld device to determine the design approach. Secondly, this thesis introduces the hardware structure of WiFi chip based on handheld device, and functional partition of hardware and software. According to this partition, this thesis determines the function of the firmware, and then proposes the design of the overall structure of the firmware and describes in detail the design of data flow and control flow. Finally, in accordance with the design of the overall structure of the firmware and the requirements of IEEE 802.11 protocol, this thesis achieves the firmware by using Hierarchy and modularity and tests it on the simulation platform based on FPGA for the wifi chip.The results of the test show that the firmware based on handheld device for WiFi chip meet the requirements of IEEE802.11b/g/n/e standards. |