TAILIEUCHUNG - Giáo trình hướng dẫn ứng dụng phân tích truyền thông bất đồng bộ các dãy kí tự star bit p6

Tham khảo tài liệu 'giáo trình hướng dẫn ứng dụng phân tích truyền thông bất đồng bộ các dãy kí tự star bit p6', kỹ thuật - công nghệ, kĩ thuật viễn thông phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | II. Chương trình include include include include include include include include c bc bin ifndef TRUE define FALSE 0 define ESC 27 endif TRUE void main void int k 0 mh 0 mode 0 char ky_tu void init void int bat_tay_thu void int bat_tay_phat void int kiem_tra_RI void void phat_truc_tiep void void thu_du_lieu void void phat_file void void de_lay int void demo void initgraph mh mode c bc bgi demo init printf n n n t t t tBam phim bat ky r getch do if bat_tay_thu 1 thu_du_lieu if kiem_tra_RI 0 clrscr printf n n n DUONG THU_PHAT HO MACH r printf n n n nhan ESC thoat. de_lay 100 goto tiep clrscr printf t t t nhan ESC thoat. Nhan P phat n de_lay 100 tiep if kbhit ky_tu getch if ky_tu P II ky_tu p if bat_tay_phat 0 clrscr printf n t t t t May ban de_lay 100 else printf n r t tphat FILE nhan F phat truc tiep nhan T k int getch switch k case 116 phat_truc_tiep break nhan T case 102 phat_file break nhan F end switch else end if ky tu p end kbhit end do_while while int ky_tu ESC end main init-- khoi tao cong noi tiep void init void disable cho phep ngat nhan ky tu outportb int COM - interrupt_enable I_CHAR_IN xac dinh kieu truyen va cai toc do truyen outportb int COM - format F_BAUD_LATCHI F_No_BREAKIF_PARITY_NONE IF_STOP2 IF_DATA5 toc do truyen byte thap outportb int COM - baud_l SPEED 0xFF toc do truyen byte cao outportb int COM - baud_h SPEED 8 tra lai truyen thu binh thuong outportb int COM - format F_NORMALI F_No_BREAK F_PARITY_NONE IF_STOP2 IF_DATA5 outportb int COM - out_control O_OUT1 O_OUT2 O_RTS O_0DTR doc thanh ghi dau vao de xoa co du lieu cua no xoa thanh ghi dem thu void inportb int COM - data xoa thanh ghi cho phep ngat void inportb int COM - interrupt_enable xoa ngat thanh ghi luu giu phan phat rong void inportb int COM - interrupt_id xoa thanh ghi trang thai duong day void inportb int COM - status xoa thanh ghi trang thai modem void inportb int COM - i_status tra loi ngat outportb 0x20 0x20 xoa

TỪ KHÓA LIÊN QUAN
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.