Page 623 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 623

{0x64,  0x04},
                     {0x65,  0x20},
                     {0x66,  0x05},

                     {0x94,  0x04},
                     {0x95,  0x08},
                     {0x6c,  0x0a},
                     {0x6d,  0x55},
                     {0x4f,  0x99},
                     {0x50,  0x99},

                     {0x51,  0x00},
                     {0x52,  0x28},
                     {0x53,  0x70},
                     {0x54,  0x99},

                     {0x58,  0x9e},
                     {0x76,  0xe1},
                     {0x11,  0x00},
                     {0x6b,  0x0a},
                     {0x6e,  0x11},
                     {0x6f,  0x9f},

                     {0x55,  0x00},
                     {0x56,  0x60},
                     {0x57,  0x80},
                 };

                 void  set_sdo_input()
                 {
                     GPIO_InitTypeDef GPIO_InitStruct;
                     GPIO_InitStruct.Pin  =  GPIO_PIN_1;
                     GPIO_InitStruct.Mode  =  GPIO_MODE_INPUT;
                     GPIO_InitStruct.Pull  =  GPIO_NOPULL;

                     HAL_GPIO_Init(GPIOA,  &GPIO_InitStruct);
                 }
                 void  set_sdo_output()
                 {

                     GPIO_InitTypeDef GPIO_InitStruct;
                     GPIO_InitStruct.Pin  =  GPIO_PIN_1;
                     GPIO_InitStruct.Mode  =  GPIO_MODE_OUTPUT_PP;
                     GPIO_InitStruct.Speed  =  GPIO_SPEED_HIGH;




                                                         -  616  -
   618   619   620   621   622   623   624   625   626   627   628