SAM V71 Xplained Ultra

 

 

SAM V71 Xplained Ultra
SAM V71 Xplained Ultra

The current through this switch is limited with the 390 Ohms resistor to IL = 250/Rlimit = 641 mA.
This is a typical value and according to the datasheet we can expect a minimum of 510 mA and a maximum of 800 mA.
The switch (TPS2113A) has a on-resistance of typically 84 mΩ (and maximal 110mΩ).

 

 

Target USB VBUS control:
Setting the VBUS_HOST_EN signal low will provide power to
VCC_TARGET_USB_P5V0 from VCC_P5V0 allowing target host mode operation.
The switch (STMPS2161) has an on-resistance of RDSon typ = 90mΩ, max = 110mΩ

Each FET in the power path has a RDSon of <50mΩ@VGS= -5V with a current of up to 20A
That means we can expect a maximum voltage drop across the FETs of 50mV@500mA, 100mV@1A and 200mV@2A.
For USB host mode we need a voltage between 4.4V to 5.25V so the drop that we have is ok and leaves some room for a host switch
on-resistance

SAM V71 Xplained Ultra

 

 

Posted by KennyShin
,

MyProject.zip
0.72MB

 

 

Input: SW0(PA9) Button input using external interrupt

Output: LED0 Toggle (Nearby SW0)

Operation: External Interrupt will be generated each edge such as rising and falling

              LED0 toggles when each external interrupt is generated

 

 

#include 

int main(void)
{
    /* Initializes MCU, drivers and middleware */
    atmel_start_init();

   /* Replace with your application code */
   EXTERNAL_IRQ_0_example();
   while (1) {
   }
}

main.c

 

 

#include "driver_examples.h"
#include "driver_init.h"
#include "utils.h"

static void button_on_PA9_pressed(void)
{
    gpio_toggle_pin_level(LED0);
}

/**
 * Example of using EXTERNAL_IRQ_0
 */
void EXTERNAL_IRQ_0_example(void)
{
    ext_irq_register(PIO_PA9_IDX, button_on_PA9_pressed);
}

driver_examples.c

Posted by KennyShin
,