cancel
Showing results for 
Search instead for 
Did you mean: 

I need the schematic of IAR STR912 eval board

lillian_200601
Associate II
Posted on March 04, 2008 at 11:17

I need the schematic of IAR STR912 eval board

3 REPLIES 3
lillian_200601
Associate II
Posted on May 17, 2011 at 09:50

Thanks Jilisegiar for your help.

I thought the USB demo code of Virtual COMM Port from STR7/STR9 USB developer kit software was developed based on the IAR STR912 EVAL board. However, it is not. See the Hardware configuration below. GPIO P0.1 is the USB connection signal, but P7.0 in the IAR STR912 EVAL board.

I am using Keil UVersion3 and MTB STR9 EVAL board and would like to move the demo source code of Virtual COMM Port to the uVersion 3.

The issue is that the demo USB code configures UART0_CTS P2.0 and UART0_RTS P3.3. The MTB STR9 board does not support the UART0_CTS and UART0_RTS. What I can do can fix this issue.

I really appciate any help from you.

/*******************************************************************************

* Function Name : Set_System.

* Description : Configures Main system clocks & power

* Input : None.

* Return : None.

*******************************************************************************/

void Set_System(void)

{

SCU_MCLKSourceConfig(SCU_MCLK_OSC);

FMI_Config(FMI_READ_WAIT_STATE_2,FMI_WRITE_WAIT_STATE_0, FMI_PWD_ENABLE,

FMI_LVD_ENABLE,FMI_FREQ_HIGH);

SCU_PLLFactorsConfig(192,25,2);

SCU_PLLCmd(ENABLE);

SCU_MCLKSourceConfig(SCU_MCLK_PLL);

SCU_AHBPeriphClockConfig(__VIC,ENABLE);

SCU_AHBPeriphReset(__VIC,DISABLE);

/*USB clock = MCLK= 48MHz*/

SCU_USBCLKConfig(SCU_USBCLK_MCLK2);

/*Enable USB clock*/

SCU_AHBPeriphClockConfig(__USB,ENABLE);

SCU_AHBPeriphReset(__USB,DISABLE);

SCU_AHBPeriphClockConfig(__USB48M,ENABLE);

/* Enable the UART0 Clock */

SCU_APBPeriphClockConfig(__UART0, ENABLE);

SCU_AHBPeriphReset(__UART0,DISABLE);

/* Enable the GPIO2 Clock */

SCU_APBPeriphClockConfig(__GPIO2, ENABLE);

SCU_AHBPeriphReset(__GPIO2,DISABLE);

/* Enable the GPIO3 Clock */

SCU_APBPeriphClockConfig(__GPIO3, ENABLE);

SCU_AHBPeriphReset(__GPIO3,DISABLE);

/* Enable the GPIO5 Clock */

SCU_APBPeriphClockConfig(__GPIO5, ENABLE);

SCU_AHBPeriphReset(__GPIO5,DISABLE);

/*Configure GPIO0 (D+ Pull-Up on P0.1)*/

SCU_APBPeriphClockConfig(__GPIO0 ,ENABLE);

SCU_APBPeriphReset(__GPIO0,DISABLE);

GPIO_DeInit(GPIO0);

GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected=GPIO_IPConnected_Enable;

GPIO_InitStructure.GPIO_Alternate=GPIO_OutputAlt1;

GPIO_Init (GPIO0, &GPIO_InitStructure);

/*Configure UART0_CTS P2.0*/

GPIO_DeInit(GPIO2);

/*After DeInit function P2.0 = UART0_CTS (defaut configuration)*/

GPIO_DeInit(GPIO5);

/*Gonfigure UART0_Rx pin GPIO5.1*/

GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_1;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;

GPIO_InitStructure.GPIO_Alternate = GPIO_InputAlt1 ;

GPIO_Init (GPIO5, &GPIO_InitStructure);

GPIO_DeInit(GPIO3);

/*Gonfigure UART0_Tx pin GPIO3.4*/

GPIO_InitStructure.GPIO_Direction = GPIO_PinInput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_4;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt3 ;

GPIO_Init (GPIO3, &GPIO_InitStructure);

/*Gonfigure UART0_RTS pin GPIO3.3*/

GPIO_InitStructure.GPIO_Direction = GPIO_PinOutput;

GPIO_InitStructure.GPIO_Pin = GPIO_Pin_3;

GPIO_InitStructure.GPIO_Type = GPIO_Type_PushPull ;

GPIO_InitStructure.GPIO_IPConnected = GPIO_IPConnected_Enable;

GPIO_InitStructure.GPIO_Alternate = GPIO_OutputAlt3 ;

GPIO_Init (GPIO3, &GPIO_InitStructure);

UART_DeInit(UART0);

/* Enable the UART Receive interrupt: this interrupt is generated when the UART0

receive FIFO hold two data */

UART_ITConfig(UART0, UART_IT_Receive, ENABLE);

VIC_DeInit();

VIC_Config(UART0_ITLine, VIC_IRQ, 2);

VIC_ITCmd(UART0_ITLine, ENABLE);

}

lillian_200601
Associate II
Posted on May 17, 2011 at 09:50

I am reading the source code of USB development software that is developed based on the IAR STR912 evaluation board. Can someone provide the schematic of the eval board to me so that I can understand the source code more easily.

Thank you very much for your help.

jilisegiar
Associate II
Posted on May 17, 2011 at 09:50

attached you find the IAR STR912-SK board schematic