SpeLuce: Difference between revisions

From ciapini
Jump to navigation Jump to search
Line 39: Line 39:
== uC ==
== uC ==


* PIC12F1840 http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en549758
* http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en553476 ha piu pwm sembra
* nuovo http://www.microchip.com/wwwproducts/Devices.aspx?product=PIC16F1709 con opamp e pwm
* nuovo http://www.microchip.com/wwwproducts/Devices.aspx?product=PIC16F1709 con opamp e pwm


=== Mappa pin ===
=== Mappa pin ===
{|style="color:green; background-color:#ffffdd;" cellpadding="10" cellspacing="0" border="1"
!Pin
!Funzione
!Nome
!porta sul uC
!I/O
|-
|1|| || ||VDD||
|-
|2|| ||PWM_UP||RA5/P1A-bis||O
|-
|3|| ||PWM_DOWN/reserved||RA4/AN3/CPS3/P1B-bis||O
|-
|4|| ||SIG_LED||RA3||O
|-
|5|| ||CAP_PAD||RA2/AN2/CPS2/P1A||I
|-
|6|| ||V_BATT||RA1/AN1/CPS1/ICSP_CLK||I
|-
|7|| ||I_SENSE||RA0/AN0/CPS0/ICSP_DAT/P1B||I
|-
|8|| || ||VSS||
|}
* PIC16F1824 simile, 14 pin, 2 CCP, per controllare 2 led
{|style="color:green; background-color:#ffffdd;" cellpadding="10" cellspacing="0" border="1"
!Pin
!Funzione
!Nome
!porta sul uC
!I/O
|-
|1|| || ||VDD||
|-
|2|| ||LED_B_PWM_1||RA5/P2A||O
|-
|3|| ||LED_B_PWM_2||RA4/AN3/CPS3/P2B||O
|-
|4|| ||MCLR||RA3/MCLR||
|-
|5|| ||LED_A_PWM_1||P1A||O
|-
|6|| ||LED_A_PWM_2||P1B||O
|-
|7|| ||RED_LED||AN7/CPS7||O
|-
|8|| ||GREEN_LED||AN6/CPS6||O
|-
|9|| ||LED_B_SENSE||AN5/CPS5||I
|-
|10|| ||LED_A_SENSE||AN4/CPS3||I
|-
|11|| ||V_BATT||AN2/CPS2||I
|-
|12|| ||CAP_2||AN1/CPS1/ICSPCLK||I
|-
|13|| ||CAP_1||AN0/CPS0/ICSPDAT||I
|-
|14|| ||VSS|| ||
|}


pic16f1709
pic16f1709


{|style="color:green; background-color:#ffffdd;" cellpadding="10" cellspacing="0" border="1"
{|style="color:green; background-color:#ffffdd;" cellpadding="10" cellspacing="0" border="1"
Line 126: Line 60:
|4|| ||MCLR||RA3/MCLR||
|4|| ||MCLR||RA3/MCLR||
|-
|-
|5|| ||LED_A_PWM_1||P1A||O
|5|| || ||RC5||O
|-
|-
|6|| ||LED_A_PWM_2||P1B||O
|6|| || ||RC4||O
|-
|-
|7|| ||RED_LED||AN7/CPS7||O
|7|| || ||RC3/AN7||O
|-
|-
|8|| ||GREEN_LED||AN6/CPS6||O
|8|| || ||RC6||O
|-
|-
|9|| ||LED_B_SENSE||AN5/CPS5||I
|9|| || ||RC7||I
|-
|-
|10|| ||LED_A_SENSE||AN4/CPS3||I
|10|| || ||RB7||I
|-
|-
|11|| ||V_BATT||AN2/CPS2||I
|11|| || ||RB6||I
|-
|-
|12|| ||CAP_2||AN1/CPS1/ICSPCLK||I
|12|| || ||RB5||I
|-
|-
|13|| ||CAP_1||AN0/CPS0/ICSPDAT||I
|13|| || ||RB4||I
|-
|-
|14|| ||VSS|| ||
|14|| || ||RC2||
|-
|-
|15|| ||VSS|| ||
|15|| || ||RC1||
|-
|-
|16|| ||VSS|| ||
|16|| || ||RC0||
|-
|-
|17|| ||VSS|| ||
|17|| || ||RA2||
|-
|-
|18|| ||VSS|| ||
|18|| || ||RA1 ||
|-
|-
|19|| ||VSS|| ||
|19|| || ||RA0||
|-
|-
|20|| ||VSS|| ||
|20|| ||VSS|| ||
|}
|}



Revision as of 15:05, 30 July 2014

Fotofori robusti

LED

http://www.cree.com/~/media/files/cree/led%20components%20and%20modules/xlamp/data%20and%20binning/xlamp7090xre.pdf

buck converter

IRLML2502 http://www.irf.com/product-info/datasheets/data/irlml2502.pdf


Current sensing

Sincrono

High Side Drivers

Asincrono

duty cycle
up
(3.3 ∕ 4.8) = 0.68
down
0.31
efficienza
0.31 ⋅ (0.385 ∕ 3.3) ≈ 0.03 di perdita sul diodo

http://www.st.com/web/catalog/sense_power/FM64/CL1571/SC541/SS1617/PF64858 Low Drop Power Schottky Rectifier 1A/0.385vf http://www.st.com/web/catalog/sense_power/FM64/CL1571/SC541/SS1617/PF64876 2A/0.43vf

uC

Mappa pin

pic16f1709

Pin Funzione Nome porta sul uC I/O
1 VDD
2 LED_B_PWM_1 RA5/P2A O
3 LED_B_PWM_2 RA4/AN3/CPS3/P2B O
4 MCLR RA3/MCLR
5 RC5 O
6 RC4 O
7 RC3/AN7 O
8 RC6 O
9 RC7 I
10 RB7 I
11 RB6 I
12 RB5 I
13 RB4 I
14 RC2
15 RC1
16 RC0
17 RA2
18 RA1
19 RA0
20 VSS