started voltmeter hacking

This commit is contained in:
Eddy 2015-01-31 21:19:39 +03:00
parent e31148c97d
commit 48a3b5a31e
43 changed files with 3382 additions and 3331 deletions

View File

@ -32,9 +32,8 @@ LIBS:valves
LIBS:stm8s105k4t6c
LIBS:tda2822
LIBS:CD74HC154
LIBS:transistors_gaui
LIBS:drum-cache
EELAYER 27 0
EELAYER 24 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8

View File

@ -32,9 +32,8 @@ LIBS:valves
LIBS:stm8s105k4t6c
LIBS:tda2822
LIBS:CD74HC154
LIBS:transistors_gaui
LIBS:drum-cache
EELAYER 27 0
EELAYER 24 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8

View File

@ -1,50 +1,7 @@
update=Сб 11 окт 2014 09:56:09
last_client=cvpcb
update=Вс 28 дек 2014 15:05:11
last_client=kicad
[general]
version=1
[eeschema]
version=1
LibDir=
NetFmtName=
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=74xx
LibName8=cmos4000
LibName9=adc-dac
LibName10=memory
LibName11=xilinx
LibName12=special
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=stm8s105k4t6c
LibName32=tda2822
LibName33=CD74HC154
LibName34=transistors_gaui
[pcbnew]
version=1
LastNetListRead=
@ -89,3 +46,50 @@ version=1
NetIExt=net
[cvpcb/libraries]
EquName1=devcms
[eeschema]
version=1
PageLayoutDescrFile=
SubpartIdSeparator=0
SubpartFirstId=65
LibDir=
NetFmtName=
SpiceForceRefPrefix=0
SpiceUseNetNumbers=0
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=74xx
LibName8=cmos4000
LibName9=adc-dac
LibName10=memory
LibName11=xilinx
LibName12=special
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=stm8s105k4t6c
LibName32=tda2822
LibName33=CD74HC154

View File

@ -32,9 +32,8 @@ LIBS:valves
LIBS:stm8s105k4t6c
LIBS:tda2822
LIBS:CD74HC154
LIBS:transistors_gaui
LIBS:drum-cache
EELAYER 27 0
EELAYER 24 0
EELAYER END
$Descr A3 16535 11693
encoding utf-8
@ -541,28 +540,6 @@ Play_ring
Text Label 1050 5550 2 60 ~ 0
Play_circle
$Comp
L ZENERSMALL D1
U 1 1 541D94C6
P 11100 4350
F 0 "D1" H 11100 4450 40 0000 C CNN
F 1 "BZX55C3V6" H 11100 4250 30 0000 C CNN
F 2 "" H 11100 4350 60 0000 C CNN
F 3 "" H 11100 4350 60 0000 C CNN
1 11100 4350
0 -1 -1 0
$EndComp
$Comp
L ZENERSMALL D2
U 1 1 541D9B34
P 11400 4350
F 0 "D2" H 11400 4450 40 0000 C CNN
F 1 "BZX55C3V6" H 11400 4250 30 0000 C CNN
F 2 "" H 11400 4350 60 0000 C CNN
F 3 "" H 11400 4350 60 0000 C CNN
1 11400 4350
0 -1 -1 0
$EndComp
$Comp
L GND #PWR013
U 1 1 541D9D40
P 11250 4550
@ -799,17 +776,6 @@ Wire Wire Line
6500 7300 6600 7300
Wire Wire Line
6500 7500 6600 7500
$Comp
L STM8S105BOARD X1
U 1 1 5425C192
P 3900 2500
F 0 "X1" H 3900 3550 60 0000 C CNN
F 1 "STM8S105BOARD" H 3900 1850 60 0000 C CNN
F 2 "devboard_pins-9-14" H 3900 2500 60 0001 C CNN
F 3 "~" H 3900 2500 60 0000 C CNN
1 3900 2500
1 0 0 -1
$EndComp
Wire Wire Line
2500 1650 2500 1600
Text Notes 10750 4700 0 60 ~ 0
@ -1302,4 +1268,37 @@ F 3 "" H 11000 7100 60 0000 C CNN
1 11000 7100
1 0 0 -1
$EndComp
$Comp
L stm8s105board X1
U 1 1 54A06126
P 3900 2500
F 0 "X1" H 3900 3550 60 0000 C CNN
F 1 "stm8s105board" H 3900 1850 60 0000 C CNN
F 2 "devboard_pins-9-14" H 3900 2500 60 0001 C CNN
F 3 "" H 3900 2500 60 0000 C CNN
1 3900 2500
1 0 0 -1
$EndComp
$Comp
L ZENERsmall D1
U 1 1 54A0D38A
P 11100 4350
F 0 "D1" H 11100 4450 40 0000 C CNN
F 1 "BZX55C3V6" H 11100 4250 30 0000 C CNN
F 2 "" H 11100 4350 60 0000 C CNN
F 3 "" H 11100 4350 60 0000 C CNN
1 11100 4350
0 -1 -1 0
$EndComp
$Comp
L ZENERsmall D2
U 1 1 54A0DB5F
P 11400 4350
F 0 "D2" H 11400 4450 40 0000 C CNN
F 1 "BZX55C3V6" H 11400 4250 30 0000 C CNN
F 2 "" H 11400 4350 60 0000 C CNN
F 3 "" H 11400 4350 60 0000 C CNN
1 11400 4350
0 -1 -1 0
$EndComp
$EndSCHEMATC

View File

@ -22,7 +22,7 @@ If drill motor was off, pressing footswitch will also turn it on.
- drill quickly moves up
- stepper speed changes to lowest
- while pressing down the footswitch motor moves down
- press BTN1 again to set current position as zero-point
- on footswitch release motor stops at current position
/*
* Button control: by default, EXTI interrupts serve buttons.

View File

@ -20,6 +20,7 @@
*/
#include "ports_definition.h"
#include "interrupts.h"
#include "main.h"
#include "stepper.h"
@ -174,22 +175,45 @@ INTERRUPT_HANDLER(UART3_RX_IRQHandler, 21){}
INTERRUPT_HANDLER(ADC2_IRQHandler, 22){}
#else
// ADC1 interrupt
//U8 val_ctr = 0;
//U16 ADC_values[10];
U16 old_potent_val = 0;
U8 Upper_TIM1_CCR1L = 100;
INTERRUPT_HANDLER(ADC1_IRQHandler, 22){
U16 v = ADC_DRL; // in right-alignment mode we should first read LSB
U8 chnl = ADC_CSR & 0x0f; // current channel converted
v |= ADC_DRH << 8;
//ADC_values[val_ctr++] = v;
ADC_value = v;
//if(val_ctr == 10) val_ctr = 0;
if(drill_works && auto_speed){
if(v > 50) DRILL_SLOWER(); // current = 0.48A
else if(v < 3){ // no motor or break?
DRILL_OFF();
uart_write("No drill motor?");
}else if(v < 30) DRILL_FASTER(); // current = 0.29A
if(chnl == 12){ // AIN12 - motor schunt
ADC_value = v;
if(drill_works && auto_speed){
if(v > MAX_DRILL_SPEED) DRILL_SLOWER(); // current = 0.48A
else if(v < 3){ // no motor or break?
DRILL_OFF();
uart_write("No drill motor?");
}else if(v < NORMAL_DRILL_SPEED) DRILL_FASTER(); // current = 0.29A
}
ADC_CSR = 0x24; // clear irq flags & next will be potentiometer
}else{ // AIN4 - potentiometer
U16 diff;
unsigned long tmp;
if(old_potent_val > v) diff = old_potent_val - v;
else diff = v - old_potent_val;
if(diff < POTENT_TRESHOLD) goto nochange; // no changing of value
old_potent_val = v; // store last value
if(drill_spd_regul){ // change drill speed: v = v*100/1024
tmp = v * 100L;
tmp >>= 10;
DRILL_SETMAX((U16)tmp); // set max speed
}else{ // change stepper speed: v = min + v*(max-min)/1024
tmp = v * (unsigned long)(MAX_STEPPER_SPEED - MIN_STEPPER_SPEED);
tmp >>= 10;
v = MIN_STEPPER_SPEED + (U16)tmp;
if((MAX_STEPPER_SPEED < v) && (MIN_STEPPER_SPEED < v)){
Stp_speed = v;
set_stepper_speed(v);
}
}
nochange:
ADC_CSR = 0x2c; // clear irq flags & next will be motor shunt
}
ADC_CSR &= 0x3f; // clear EOC & AWD flags
}
#endif // STM8S208 or STM8S207 or STM8AF52Ax or STM8AF62Ax

View File

@ -30,7 +30,9 @@ volatile char exti_event = -1; // flag & counter of EXTI interrupt
U16 paused_val = 500; // interval between LED flashing
U8 drill_works = 0; // flag of working motor
U8 set_to_zero = 0; // flag showing that motor is in state of zero point setting up
U8 auto_speed = 0;
U8 drill_spd_regul = 0; // in default case we regulate stepper speed by variable resistor
U8 UART_rx[UART_BUF_LEN]; // cycle buffer for received data
U8 UART_rx_start_i = 0; // started index of received data (from which reading starts)
@ -67,7 +69,8 @@ char usteps[8] =
#error Define MOTOR_TYPE_UNIPOLAR or MOTOR_TYPE_BIPOLAR
#endif
volatile U16 ADC_value = 0; // value of last ADC measurement
volatile U16 ADC_value = 0; // value of last ADC measurement (drill sense)
volatile U16 Stp_speed = 50; // stepper speed set by varistor
/**
* Send one byte through UART
@ -166,7 +169,7 @@ void check_buttons(){
if(btn_state == old_buttons_state) goto rtn; // none changed
btns_changed = btn_state ^ old_buttons_state; // XOR -> 1 on changed states
// check for footswitch
if(FOOTSW_TEST(btns_changed)){
if(FOOTSW_TEST(btns_changed) && !TRAY_BTM_SW){ // move only when tray is down!
if(!FOOTSW_TEST(btn_state)){ // pedal switch pressed - connect to ground!
if(!drill_works){
DRILL_ON();
@ -174,22 +177,47 @@ void check_buttons(){
add_steps(-5000); // this is a trick to move more than stage allows
uart_write("move down\n");
}else{
add_steps(-5000); // return to previous state (this function moves RELATIVELY)
uart_write("move up\n");
if(set_to_zero){
set_to_zero = 0;
stop_motor();
}else{
add_steps(-5000); // return to previous state (this function moves RELATIVELY)
uart_write("move up\n");
}
}
}
// check for tray endswitches. We don't care for their off state, so only check ON
if(TRAYSW_TEST(btns_changed) && TRAYSW_PRSD(btn_state)){
uart_write("tray stop\n");
TRAY_STOP(); // stop tray motor in any moving direction
if(!TRAY_BTM_SW) set_stepper_speed(Stp_speed); // restore stepper speed in down position
}
// check for user buttons pressed (the same - only pressed)
if(BTN12_TEST(btns_changed) && !BTN12_TEST(btn_state)){ // pressed both buttons
uart_write("both buttons\n");
uart_write("move tray ");
DRILL_OFF();
if(!TRAY_TOP_SW){ // tray is up -> move it down & stepper up
uart_write("down\n");
move_motor(-FULL_SCALE_STEPS);
while(Nsteps); // wait until it moves
TRAY_DOWN();
}else{ // move tray up & stepper down
uart_write("up\n");
set_stepper_speed(MAX_STEPPER_SPEED); // move as faster as possible
move_motor(FULL_SCALE_STEPS);
while(Nsteps); // wait until it moves
TRAY_UP();
}
}else if(BTN1_TEST(btns_changed) && !BTN1_TEST(btn_state)){ // btn1
uart_write("button 1\n");
set_stepper_speed(MAX_STEPPER_SPEED);
move_motor(-FULL_SCALE_STEPS);
while(Nsteps); // wait until it moves
set_stepper_speed(MIN_STEPPER_SPEED);
set_to_zero = 1;
}else if(BTN2_TEST(btns_changed) && !BTN2_TEST(btn_state)){ // btn2
uart_write("button 2\n");
drill_spd_regul = !drill_spd_regul;
}
old_buttons_state = btn_state;
rtn:
@ -232,9 +260,11 @@ int main() {
TIM1_CR1 = TIM_CR1_APRE | TIM_CR1_URS | TIM_CR1_CEN;
// configure ADC
// PB4 (AIN4) is potentiometer regulated motor speed
// select PF4 - Sence (AIN12) & enable interrupt for EOC
ADC_CSR = 0x2c; // EOCIE = 1; CH[3:0] = 0x0c (12)
ADC_TDRH = 0x10;// disable Schmitt triger for AIN12
ADC_TDRL = 0x10;// disable Schmitt triger for AIN4
// right alignment
ADC_CR2 = 0x08; // don't forget: first read ADC_DRL!
// f_{ADC} = f/18 & continuous non-buffered conversion & wake it up
@ -265,7 +295,7 @@ int main() {
// enable all interrupts
enableInterrupts();
set_stepper_speed(1000);
set_stepper_speed(Stp_speed);
setup_stepper_pins();
// Loop

View File

@ -22,6 +22,8 @@
#ifndef __MAIN_H__
#define __MAIN_H__
#include "stm8l.h"
extern unsigned long Global_time; // global time in ms
extern volatile char exti_event; // flag of EXTI interrupt == 0 -> check keys
@ -39,6 +41,8 @@ extern U8 UART_rx_cur_i;
extern volatile U16 ADC_value; // value of last ADC measurement
extern U8 drill_works;
extern U8 auto_speed; // == 1 to automatic speed regulation
extern U8 drill_spd_regul;
extern volatile U16 Stp_speed;
void UART_send_byte(U8 byte);
void uart_write(char *str);

View File

@ -36,6 +36,9 @@
#define CONCAT(a, b) a ## _ ## b
#define PORT(a, b) CONCAT(a , b)
// Potentiometer threshold (in ADU) - 0.5% error
#define POTENT_TRESHOLD (5)
// on-board LED
#define LED_PORT PC
#define LED_PIN GPIO_PIN2
@ -47,11 +50,20 @@
/***** Stepper motor *****/
// Clocking
#define STP_PORT PB // PB0..3 -- pins A..D of stepper
// amount of steps on all trace
#define FULL_SCALE_STEPS (3000)
#define MAX_STEPPER_SPEED (500)
#define MIN_STEPPER_SPEED (20)
/* drill motor PC1 - timer 1 PWM output 1; PC5 - footswitch */
// speed (in ADU values of voltage on schunt)
#define MAX_DRILL_SPEED (50)
#define NORMAL_DRILL_SPEED (30)
extern U8 Upper_TIM1_CCR1L; // max speed set by user
#define DRILL_ON() do{TIM1_BKR |= 0x80; drill_works = 1;}while(0) // turn on drill motor
#define DRILL_OFF() do{TIM1_BKR &= ~0x80; PC_ODR &= ~GPIO_PIN1; drill_works = 0;}while(0) // turn it off
#define DRILL_FASTER() do{U8 r = TIM1_CCR1L; if(r < 100) TIM1_CCR1L = r+1;}while(0)// increase current
#define DRILL_SETMAX(X) do{Upper_TIM1_CCR1L = X; TIM1_CCR1L = X;}while(0)
#define DRILL_FASTER() do{U8 r = TIM1_CCR1L; if(r < Upper_TIM1_CCR1L) TIM1_CCR1L = r+1;}while(0)// increase current
#define DRILL_SLOWER() do{U8 r = TIM1_CCR1L; if(r > 0) TIM1_CCR1L = r-1;}while(0) // decrease it
#define FOOTSWITCH ((PC_IDR & GPIO_PIN5))
#define FOOTSW_TEST(x) ((x & GPIO_PIN5))

View File

@ -1,24 +1,17 @@
Cmp-Mod V01 Created by CvPcb (2013-may-18)-stable date = Вт 19 авг 2014 18:05:15
Cmp-Mod V01 Created by CvPcb (2013-may-18)-stable date = Ср 12 ноя 2014 00:15:14
BeginCmp
TimeStamp = /52FB0413;
Reference = C1;
ValeurCmp = 1u;
IdModule = SM1206;
TimeStamp = /54628F3E;
Reference = BTN1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
TimeStamp = /52FB0426;
Reference = C2;
ValeurCmp = 104;
IdModule = SM0603_Capa;
EndCmp
BeginCmp
TimeStamp = /52FB0F99;
Reference = C3;
ValeurCmp = 104;
IdModule = SM0603_Capa;
TimeStamp = /54628FEC;
Reference = BTN2;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
@ -38,22 +31,8 @@ EndCmp
BeginCmp
TimeStamp = /53EF036E/53F36070;
Reference = C6;
ValeurCmp = 47u;
IdModule = SM1206POL;
EndCmp
BeginCmp
TimeStamp = /52FB0DD3;
Reference = D1;
ValeurCmp = LED;
IdModule = LED-0603;
EndCmp
BeginCmp
TimeStamp = /52FB0ECD;
Reference = D2;
ValeurCmp = LED;
IdModule = LED-0603;
ValeurCmp = 0.1u;
IdModule = SM0603;
EndCmp
BeginCmp
@ -67,21 +46,56 @@ BeginCmp
TimeStamp = /53F0EE9F;
Reference = DA1;
ValeurCmp = L9110;
IdModule = SOP8;
IdModule = so-8;
EndCmp
BeginCmp
TimeStamp = /53F0EF24;
Reference = DA2;
ValeurCmp = L9110;
IdModule = SOP8;
IdModule = so-8;
EndCmp
BeginCmp
TimeStamp = /53F0EF3C;
Reference = DA3;
ValeurCmp = L9110;
IdModule = SOP8;
IdModule = so-8;
EndCmp
BeginCmp
TimeStamp = /54628F38;
Reference = DOWN1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
TimeStamp = /54629D60;
Reference = DRILL+1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
TimeStamp = /54629E20;
Reference = DRILL-1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
TimeStamp = /5462B0E5;
Reference = DRILLSW1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
TimeStamp = /5462B0EB;
Reference = GND1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
@ -91,74 +105,25 @@ ValeurCmp = POWER;
IdModule = PIN_ARRAY_3X1;
EndCmp
BeginCmp
TimeStamp = /52FB0A6A;
Reference = P1;
ValeurCmp = CONN_14;
IdModule = SIL-14;
EndCmp
BeginCmp
TimeStamp = /52FB0A49;
Reference = P2;
ValeurCmp = CONN_4;
IdModule = SIL-4;
EndCmp
BeginCmp
TimeStamp = /53F0F09A;
Reference = P3;
ValeurCmp = Stepper;
IdModule = SIL-4;
IdModule = PIN_ARRAY_4x1;
EndCmp
BeginCmp
TimeStamp = /53F1169C;
Reference = P4;
ValeurCmp = Slide;
IdModule = SIL-2;
IdModule = PIN_ARRAY_2X1;
EndCmp
BeginCmp
TimeStamp = /52FB0A79;
Reference = P5;
ValeurCmp = CONN_14;
IdModule = SIL-14;
EndCmp
BeginCmp
TimeStamp = /52FB4AA7;
Reference = P6;
ValeurCmp = CONN_5;
IdModule = SIL-5;
EndCmp
BeginCmp
TimeStamp = /53EF036E/53E67E05;
Reference = P7;
ValeurCmp = CONN_2;
IdModule = SIL-2;
EndCmp
BeginCmp
TimeStamp = /52FB0DE2;
Reference = R1;
ValeurCmp = 1k;
IdModule = SM0603;
EndCmp
BeginCmp
TimeStamp = /52FB0ED3;
Reference = R2;
ValeurCmp = 1k;
IdModule = SM0603;
EndCmp
BeginCmp
TimeStamp = /52FB0EFD;
Reference = R3;
ValeurCmp = 10k;
IdModule = SM0603;
TimeStamp = /54628FF2;
Reference = POT1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
@ -171,57 +136,8 @@ EndCmp
BeginCmp
TimeStamp = /53EF036E/53E67E8A;
Reference = R5;
ValeurCmp = 1R;
IdModule = R4;
EndCmp
BeginCmp
TimeStamp = /53EF036E/53E67E9C;
Reference = R6;
ValeurCmp = 1R;
IdModule = R4;
EndCmp
BeginCmp
TimeStamp = /53EF036E/53F123DF;
Reference = R7;
ValeurCmp = 1R;
IdModule = R4;
EndCmp
BeginCmp
TimeStamp = /53F13089;
Reference = SW1;
ValeurCmp = DRILL;
IdModule = 2PIN_6mm;
EndCmp
BeginCmp
TimeStamp = /53F12B09;
Reference = SW2;
ValeurCmp = UP;
IdModule = 2PIN_6mm;
EndCmp
BeginCmp
TimeStamp = /53F12B1C;
Reference = SW3;
ValeurCmp = DOWN;
IdModule = 2PIN_6mm;
EndCmp
BeginCmp
TimeStamp = /52FB0F3B;
Reference = SW4;
ValeurCmp = SW_PUSH;
IdModule = 2PIN_6mm;
EndCmp
BeginCmp
TimeStamp = /52FB03A2;
Reference = U1;
ValeurCmp = STM8S105K4T6C;
IdModule = ;
ValeurCmp = 0.33R;
IdModule = r_2512;
EndCmp
BeginCmp
@ -231,6 +147,13 @@ ValeurCmp = LM1117MPX-3.3;
IdModule = SOT223;
EndCmp
BeginCmp
TimeStamp = /54628F0D;
Reference = UP1;
ValeurCmp = CONN_1;
IdModule = PINTST;
EndCmp
BeginCmp
TimeStamp = /53EF036E/53F123C0;
Reference = VT1;
@ -238,4 +161,11 @@ ValeurCmp = S8205A;
IdModule = TSSOP-8;
EndCmp
BeginCmp
TimeStamp = /54626F55;
Reference = X1;
ValeurCmp = STM8S105BOARD;
IdModule = devboard_pins-9-14;
EndCmp
EndListe

File diff suppressed because it is too large Load Diff

View File

@ -1,79 +1,9 @@
(export (version D)
(design
(source /home/eddy/Docs/ELECTRONICS/STM8/STM8_samples/microdrill/schematics/MCU_module.sch)
(date "Вт 19 авг 2014 18:08:16")
(source /home/eddy/tmp/microdrill/schematics/MCU_module.sch)
(date "Вс 16 ноя 2014 01:25:03")
(tool "eeschema (2013-may-18)-stable"))
(components
(comp (ref U1)
(value STM8S105K4T6C)
(libsource (lib stm8s105k4t6c) (part STM8S105K4T6C))
(sheetpath (names /) (tstamps /))
(tstamp 52FB03A2))
(comp (ref C1)
(value 1u)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0413))
(comp (ref C2)
(value 104)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0426))
(comp (ref P2)
(value CONN_4)
(libsource (lib conn) (part CONN_4))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0A49))
(comp (ref P1)
(value CONN_14)
(libsource (lib conn) (part CONN_14))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0A6A))
(comp (ref P5)
(value CONN_14)
(libsource (lib conn) (part CONN_14))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0A79))
(comp (ref D1)
(value LED)
(libsource (lib device) (part LED))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0DD3))
(comp (ref R1)
(value 1k)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0DE2))
(comp (ref D2)
(value LED)
(libsource (lib device) (part LED))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0ECD))
(comp (ref R2)
(value 1k)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0ED3))
(comp (ref R3)
(value 10k)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0EFD))
(comp (ref SW4)
(value SW_PUSH)
(libsource (lib device) (part SW_PUSH))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0F3B))
(comp (ref C3)
(value 104)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 52FB0F99))
(comp (ref P6)
(value CONN_5)
(libsource (lib conn) (part CONN_5))
(sheetpath (names /) (tstamps /))
(tstamp 52FB4AA7))
(comp (ref DA1)
(value L9110)
(libsource (lib L9110) (part L9110))
@ -122,36 +52,63 @@
(libsource (lib conn) (part CONN_2))
(sheetpath (names /) (tstamps /))
(tstamp 53F1169C))
(comp (ref SW2)
(value UP)
(libsource (lib device) (part SW_PUSH))
(comp (ref X1)
(value STM8S105BOARD)
(footprint devboard_pins-9-14)
(libsource (lib stm8s105k4t6c) (part STM8S105BOARD))
(sheetpath (names /) (tstamps /))
(tstamp 53F12B09))
(comp (ref SW3)
(value DOWN)
(libsource (lib device) (part SW_PUSH))
(tstamp 54626F55))
(comp (ref UP1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 53F12B1C))
(comp (ref SW1)
(value DRILL)
(libsource (lib device) (part SW_PUSH))
(tstamp 54628F0D))
(comp (ref DOWN1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 53F13089))
(comp (ref P7)
(value CONN_2)
(libsource (lib conn) (part CONN_2))
(sheetpath (names "/Drill motor/") (tstamps /53EF036E/))
(tstamp 53E67E05))
(tstamp 54628F38))
(comp (ref BTN1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 54628F3E))
(comp (ref BTN2)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 54628FEC))
(comp (ref POT1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 54628FF2))
(comp (ref DRILL+1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 54629D60))
(comp (ref DRILL-1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 54629E20))
(comp (ref DRILLSW1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 5462B0E5))
(comp (ref GND1)
(value CONN_1)
(libsource (lib conn) (part CONN_1))
(sheetpath (names /) (tstamps /))
(tstamp 5462B0EB))
(comp (ref R5)
(value 1R)
(value 0.33R)
(footprint SM2512)
(libsource (lib device) (part R))
(sheetpath (names "/Drill motor/") (tstamps /53EF036E/))
(tstamp 53E67E8A))
(comp (ref R6)
(value 1R)
(libsource (lib device) (part R))
(sheetpath (names "/Drill motor/") (tstamps /53EF036E/))
(tstamp 53E67E9C))
(comp (ref R4)
(value 47k)
(libsource (lib device) (part R))
@ -168,13 +125,9 @@
(libsource (lib s8205a) (part S8205A))
(sheetpath (names "/Drill motor/") (tstamps /53EF036E/))
(tstamp 53F123C0))
(comp (ref R7)
(value 1R)
(libsource (lib device) (part R))
(sheetpath (names "/Drill motor/") (tstamps /53EF036E/))
(tstamp 53F123DF))
(comp (ref C6)
(value 47u)
(value 0.1u)
(footprint SM0603)
(libsource (lib device) (part CP1))
(sheetpath (names "/Drill motor/") (tstamps /53EF036E/))
(tstamp 53F36070)))
@ -213,21 +166,6 @@
(pins
(pin (num 1) (name A) (type passive))
(pin (num 2) (name K) (type passive))))
(libpart (lib device) (part LED)
(footprints
(fp LED-3MM)
(fp LED-5MM)
(fp LED-10MM)
(fp LED-0603)
(fp LED-0805)
(fp LED-1206)
(fp LEDV))
(fields
(field (name Reference) D)
(field (name Value) LED))
(pins
(pin (num 1) (name A) (type passive))
(pin (num 2) (name K) (type passive))))
(libpart (lib device) (part R)
(description Resistance)
(footprints
@ -242,34 +180,13 @@
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib device) (part SW_PUSH)
(description "Push Button")
(fields
(field (name Reference) SW)
(field (name Value) SW_PUSH))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))))
(libpart (lib conn) (part CONN_14)
(description "Symbole general de connexion")
(libpart (lib conn) (part CONN_1)
(description "1 pin")
(fields
(field (name Reference) P)
(field (name Value) CONN_14))
(field (name Value) CONN_1))
(pins
(pin (num 1) (name P1) (type passive))
(pin (num 2) (name P2) (type passive))
(pin (num 3) (name P3) (type passive))
(pin (num 4) (name P4) (type passive))
(pin (num 5) (name P5) (type passive))
(pin (num 6) (name P6) (type passive))
(pin (num 7) (name P7) (type passive))
(pin (num 8) (name P8) (type passive))
(pin (num 9) (name P9) (type passive))
(pin (num 10) (name P10) (type passive))
(pin (num 11) (name P11) (type passive))
(pin (num 12) (name P12) (type passive))
(pin (num 13) (name P13) (type passive))
(pin (num 14) (name P14) (type passive))))
(pin (num 1) (name 1) (type passive))))
(libpart (lib conn) (part CONN_2)
(description "Symbole general de connecteur")
(fields
@ -297,17 +214,6 @@
(pin (num 2) (name P2) (type passive))
(pin (num 3) (name P3) (type passive))
(pin (num 4) (name P4) (type passive))))
(libpart (lib conn) (part CONN_5)
(description "Symbole general de connecteur")
(fields
(field (name Reference) P)
(field (name Value) CONN_5))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))
(pin (num 3) (name ~) (type passive))
(pin (num 4) (name ~) (type passive))
(pin (num 5) (name ~) (type passive))))
(libpart (lib L9110) (part L9110)
(footprints
(fp DIP8*)
@ -328,47 +234,43 @@
(pin (num 6) (name IA) (type input))
(pin (num 7) (name IB) (type input))
(pin (num 8) (name GND) (type power_in))))
(libpart (lib stm8s105k4t6c) (part STM8S105K4T6C)
(libpart (lib stm8s105k4t6c) (part stm8s105board)
(footprints
(fp lqfp32*))
(fp stm8s105board))
(fields
(field (name Reference) U)
(field (name Value) STM8S105K4T6C)
(field (name Footprint) ~)
(field (name Reference) X)
(field (name Value) stm8s105board)
(field (name Footprint) devboard_pins-9-14)
(field (name Datasheet) ~))
(pins
(pin (num 1) (name NRST) (type input))
(pin (num 2) (name OSCIN/PA1) (type 3state))
(pin (num 3) (name OSCOUT/PA2) (type 3state))
(pin (num 4) (name VSS) (type power_in))
(pin (num 5) (name VCAP) (type power_out))
(pin (num 6) (name "VDD(3.3-5v)") (type power_in))
(pin (num 7) (name VDDio) (type power_in))
(pin (num 8) (name PF4/AIN12) (type 3state))
(pin (num 9) (name VDDA) (type power_in))
(pin (num 10) (name VSSA) (type power_in))
(pin (num 11) (name PB5/AIN5[I2X_SDA]) (type 3state))
(pin (num 12) (name PB4/AIN4[I2C_SCL]) (type 3state))
(pin (num 13) (name PB3/AIN3[TIM1_ETR]) (type 3state))
(pin (num 14) (name PB2/AIN2[TIM1_CH3N]) (type 3state))
(pin (num 15) (name PB1/AIN1_[TIM1_CH2N]) (type 3state))
(pin (num 16) (name PB0/AIN0_[TIM1_CH1N]) (type 3state))
(pin (num 17) (name PE5/SPI_NSS) (type 3state))
(pin (num 18) (name "PC1(HS)/TIM1_CH1") (type 3state))
(pin (num 19) (name "PC2(HS)/TIM1_CH2") (type 3state))
(pin (num 20) (name "PC3(HS)/TIM1_CH3") (type 3state))
(pin (num 21) (name "PC4(HS)/TIM1_CH4") (type 3state))
(pin (num 22) (name "PC5(HS)/SPI_SCK") (type 3state))
(pin (num 23) (name "PC6(HS)/SPI_MOSI") (type 3state))
(pin (num 24) (name "PC7(HS)/SPI_MISO") (type 3state))
(pin (num 25) (name "PD0(HS)/TIM3_CH2[TIM1_BKIN][CLK_CCO]") (type 3state))
(pin (num 26) (name "PD1(HS)/SWIM") (type 3state))
(pin (num 27) (name "PD2(HS)/TIM3_CH1[TIM2_CH3]") (type 3state))
(pin (num 28) (name "PD3(HS)/TIM2_CH2[ADC_ETR]") (type 3state))
(pin (num 29) (name "PD4(HS)/TIM2_CH1[BEEP]") (type 3state))
(pin (num 30) (name PD5/UART2_TX) (type 3state))
(pin (num 31) (name PD6/UART2_RX) (type 3state))
(pin (num 32) (name PD7/TLI[TIM1_CH4]) (type 3state))))
(pin (num 1) (name "VDD(3.3-5v)") (type power_in))
(pin (num 2) (name GND) (type power_in))
(pin (num 3) (name NRST) (type input))
(pin (num 4) (name OSCIN/PA1) (type 3state))
(pin (num 5) (name OSCOUT/PA2) (type 3state))
(pin (num 6) (name PF4/AIN12) (type 3state))
(pin (num 7) (name PB5/AIN5[I2X_SDA]) (type 3state))
(pin (num 8) (name PB4/AIN4[I2C_SCL]) (type 3state))
(pin (num 9) (name PB3/AIN3[TIM1_ETR]) (type 3state))
(pin (num 10) (name PB2/AIN2[TIM1_CH3N]) (type 3state))
(pin (num 11) (name PB1/AIN1_[TIM1_CH2N]) (type 3state))
(pin (num 12) (name PB0/AIN0_[TIM1_CH1N]) (type 3state))
(pin (num 13) (name PE5/SPI_NSS) (type 3state))
(pin (num 14) (name "PC1(HS)/TIM1_CH1") (type 3state))
(pin (num 15) (name "PC2(HS)/TIM1_CH2") (type 3state))
(pin (num 16) (name "PC3(HS)/TIM1_CH3") (type 3state))
(pin (num 17) (name "PC4(HS)/TIM1_CH4") (type 3state))
(pin (num 18) (name "PC5(HS)/SPI_SCK") (type 3state))
(pin (num 19) (name "PC6(HS)/SPI_MOSI") (type 3state))
(pin (num 20) (name "PC7(HS)/SPI_MISO") (type 3state))
(pin (num 21) (name "PD0(HS)/TIM3_CH2[TIM1_BKIN][CLK_CCO]") (type 3state))
(pin (num 22) (name "PD1(HS)/SWIM") (type 3state))
(pin (num 23) (name "PD2(HS)/TIM3_CH1[TIM2_CH3]") (type 3state))
(pin (num 24) (name "PD3(HS)/TIM2_CH2[ADC_ETR]") (type 3state))
(pin (num 25) (name "PD4(HS)/TIM2_CH1[BEEP]") (type 3state))
(pin (num 26) (name PD5/UART2_TX) (type 3state))
(pin (num 27) (name PD6/UART2_RX) (type 3state))
(pin (num 28) (name PD7/TLI[TIM1_CH4]) (type 3state))))
(libpart (lib LM1117) (part LM1117MPX-3.3)
(footprints
(fp SOT223*))
@ -396,6 +298,7 @@
(pin (num 3) (name S1) (type passive))
(pin (num 4) (name G1) (type passive))
(pin (num 5) (name G2) (type passive))
(pin (num 6) (name S2) (type passive))
(pin (num 7) (name S2) (type passive))
(pin (num 8) (name D) (type passive)))))
(libraries
@ -412,199 +315,134 @@
(library (logical s8205a)
(uri s8205a.lib)))
(nets
(net (code 1) (name /PB2)
(node (ref P1) (pin 10))
(node (ref DA2) (pin 6))
(node (ref U1) (pin 14)))
(net (code 2) (name /PB5)
(node (ref DA3) (pin 7))
(node (ref U1) (pin 11))
(node (ref P1) (pin 7)))
(net (code 3) (name /PB4)
(node (ref U1) (pin 12))
(node (ref DA3) (pin 6))
(node (ref P1) (pin 8)))
(net (code 4) (name /PB3)
(node (ref U1) (pin 13))
(node (ref P1) (pin 9))
(net (code 1) (name /NRST)
(node (ref X1) (pin 3)))
(net (code 2) (name /PC5)
(node (ref DRILLSW1) (pin 1))
(node (ref X1) (pin 18)))
(net (code 3) (name /OSC1IN)
(node (ref X1) (pin 4)))
(net (code 4) (name /OSC2IN)
(node (ref X1) (pin 5)))
(net (code 5) (name /PB5)
(node (ref X1) (pin 7)))
(net (code 6) (name /PB3)
(node (ref X1) (pin 9))
(node (ref DA2) (pin 7)))
(net (code 5) (name "")
(net (code 7) (name /PD0)
(node (ref X1) (pin 21)))
(net (code 8) (name /SWIM/PD1)
(node (ref X1) (pin 22)))
(net (code 9) (name /PE5)
(node (ref X1) (pin 13)))
(net (code 10) (name "")
(node (ref P3) (pin 2))
(node (ref DA1) (pin 1)))
(net (code 11) (name "")
(node (ref DA1) (pin 4))
(node (ref P3) (pin 2)))
(net (code 6) (name "")
(node (ref DA2) (pin 4))
(node (ref P3) (pin 4)))
(net (code 7) (name "")
(node (ref DA2) (pin 1))
(node (ref P3) (pin 3)))
(net (code 8) (name GND)
(node (ref U2) (pin 1))
(node (ref K1) (pin 1))
(node (ref P1) (pin 2))
(node (ref SW1) (pin 2))
(node (ref SW3) (pin 1))
(node (ref SW2) (pin 2))
(node (ref C4) (pin 2))
(node (ref C5) (pin 2))
(node (ref C6) (pin 2))
(node (ref C3) (pin 2))
(node (ref SW4) (pin 1))
(node (ref R7) (pin 2))
(node (ref R6) (pin 2))
(node (ref R5) (pin 2))
(node (ref P2) (pin 4))
(node (ref U1) (pin 10))
(node (ref U1) (pin 4))
(node (ref C2) (pin 1))
(node (ref C1) (pin 1))
(node (ref R2) (pin 2))
(node (ref DA1) (pin 8))
(node (ref DA1) (pin 5))
(node (ref DA2) (pin 8))
(node (ref DA2) (pin 5))
(node (ref DA3) (pin 5))
(node (ref P6) (pin 5))
(node (ref DA3) (pin 8)))
(net (code 9) (name /PB1)
(node (ref P1) (pin 11))
(node (ref U1) (pin 15))
(node (ref DA1) (pin 7)))
(net (code 10) (name /PB0)
(node (ref U1) (pin 16))
(node (ref P1) (pin 12))
(node (ref DA1) (pin 6)))
(net (code 11) (name /5.0V)
(node (ref P6) (pin 2)))
(net (code 12) (name +3.3V)
(node (ref U1) (pin 9))
(node (ref D2) (pin 1))
(node (ref R3) (pin 1))
(node (ref P6) (pin 1))
(node (ref P1) (pin 1))
(node (ref C2) (pin 2))
(node (ref U1) (pin 6))
(node (ref P2) (pin 1))
(node (ref U1) (pin 7))
(node (ref C5) (pin 1))
(node (ref U2) (pin 2))
(node (ref D1) (pin 1)))
(net (code 13) (name /PD6)
(node (ref P5) (pin 2))
(node (ref U1) (pin 31))
(node (ref P6) (pin 3)))
(net (code 14) (name "")
(node (ref DA1) (pin 1))
(node (ref P3) (pin 1)))
(net (code 15) (name "/Drill motor/Sence")
(node (ref R4) (pin 1))
(node (ref C6) (pin 1))
(node (ref P1) (pin 6))
(node (ref U1) (pin 8)))
(net (code 16) (name "/Drill motor/PWM_in")
(node (ref VT1) (pin 4))
(node (ref U1) (pin 18))
(node (ref P1) (pin 14)))
(net (code 17) (name /PD5)
(node (ref P5) (pin 3))
(node (ref P6) (pin 4))
(node (ref U1) (pin 30)))
(net (code 18) (name "")
(net (code 12) (name "")
(node (ref DA2) (pin 1))
(node (ref P3) (pin 4)))
(net (code 13) (name "")
(node (ref DA2) (pin 4))
(node (ref P3) (pin 3)))
(net (code 14) (name "/Drill motor/PWM_in")
(node (ref X1) (pin 14))
(node (ref VT1) (pin 5))
(node (ref VT1) (pin 4)))
(net (code 15) (name +5V)
(node (ref DA3) (pin 2))
(node (ref DA3) (pin 3))
(node (ref U2) (pin 3))
(node (ref C4) (pin 1))
(node (ref K1) (pin 2))
(node (ref DA1) (pin 2))
(node (ref DA1) (pin 3))
(node (ref DA2) (pin 2))
(node (ref DA2) (pin 3)))
(net (code 16) (name "")
(node (ref DA3) (pin 1))
(node (ref P4) (pin 1)))
(net (code 17) (name "")
(node (ref DA3) (pin 4))
(node (ref P4) (pin 2)))
(net (code 19) (name "")
(node (ref P4) (pin 1))
(node (ref DA3) (pin 1)))
(net (code 20) (name +5V)
(node (ref C4) (pin 1))
(node (ref U2) (pin 3))
(node (ref DA1) (pin 3))
(node (ref DA1) (pin 2))
(node (ref DA3) (pin 3))
(node (ref DA3) (pin 2))
(node (ref DA2) (pin 3))
(node (ref DA2) (pin 2))
(node (ref K1) (pin 2)))
(net (code 21) (name /PC4)
(node (ref U1) (pin 21))
(node (ref SW1) (pin 1))
(node (ref P5) (pin 12)))
(net (code 22) (name /PC2)
(node (ref U1) (pin 19))
(node (ref SW3) (pin 2))
(node (ref R1) (pin 2))
(node (ref P5) (pin 14)))
(net (code 23) (name /PC3)
(node (ref SW2) (pin 1))
(node (ref P5) (pin 13))
(node (ref U1) (pin 20)))
(net (code 24) (name +12V)
(node (ref D3) (pin 2))
(node (ref K1) (pin 3))
(node (ref P7) (pin 1)))
(net (code 25) (name /OSC1IN)
(node (ref P1) (pin 4))
(node (ref U1) (pin 2)))
(net (code 26) (name /PD0)
(node (ref P5) (pin 8))
(node (ref U1) (pin 25)))
(net (code 27) (name /PC7)
(node (ref P5) (pin 9))
(node (ref U1) (pin 24)))
(net (code 28) (name /PC6)
(node (ref U1) (pin 23))
(node (ref P5) (pin 10)))
(net (code 29) (name /PD7)
(node (ref P5) (pin 1))
(node (ref U1) (pin 32)))
(net (code 30) (name /PC5)
(node (ref U1) (pin 22))
(node (ref P5) (pin 11)))
(net (code 31) (name "")
(node (ref C1) (pin 2))
(node (ref U1) (pin 5)))
(net (code 32) (name /OSC2IN)
(node (ref P1) (pin 5))
(node (ref U1) (pin 3)))
(net (code 33) (name /NRST)
(node (ref P1) (pin 3))
(node (ref U1) (pin 1))
(node (ref C3) (pin 1))
(node (ref P2) (pin 3))
(node (ref SW4) (pin 2))
(node (ref R3) (pin 2)))
(net (code 34) (name /PD4)
(node (ref P5) (pin 4))
(node (ref U1) (pin 29)))
(net (code 35) (name /PD3)
(node (ref U1) (pin 28))
(node (ref P5) (pin 5)))
(net (code 36) (name /PD2)
(node (ref U1) (pin 27))
(node (ref P5) (pin 6)))
(net (code 37) (name /PE5)
(node (ref U1) (pin 17))
(node (ref P1) (pin 13)))
(net (code 38) (name /SWIM/PD1)
(node (ref P5) (pin 7))
(node (ref P2) (pin 2))
(node (ref U1) (pin 26)))
(net (code 39) (name "")
(node (ref R2) (pin 1))
(node (ref D2) (pin 2)))
(net (code 40) (name "")
(node (ref R1) (pin 1))
(node (ref D1) (pin 2)))
(net (code 41) (name "")
(node (ref VT1) (pin 3))
(node (ref VT1) (pin 7))
(node (ref R7) (pin 1))
(node (ref VT1) (pin 2))
(node (ref VT1) (pin 5))
(node (ref R5) (pin 1))
(node (ref R6) (pin 1))
(node (ref R4) (pin 2)))
(net (code 42) (name "")
(node (ref D3) (pin 1))
(net (code 18) (name /PD7)
(node (ref X1) (pin 28)))
(net (code 19) (name "/Drill motor/DRILL-")
(node (ref VT1) (pin 8))
(node (ref VT1) (pin 1))
(node (ref P7) (pin 2)))))
(node (ref D3) (pin 1))
(node (ref DRILL-1) (pin 1)))
(net (code 20) (name GND)
(node (ref U2) (pin 1))
(node (ref K1) (pin 1))
(node (ref C5) (pin 2))
(node (ref C4) (pin 2))
(node (ref X1) (pin 2))
(node (ref DA3) (pin 8))
(node (ref GND1) (pin 1))
(node (ref C6) (pin 2))
(node (ref DA3) (pin 5))
(node (ref R5) (pin 2))
(node (ref DA2) (pin 8))
(node (ref DA2) (pin 5))
(node (ref DA1) (pin 8))
(node (ref DA1) (pin 5)))
(net (code 21) (name /PD4)
(node (ref X1) (pin 25)))
(net (code 22) (name /PC2)
(node (ref X1) (pin 15)))
(net (code 23) (name /PD6)
(node (ref X1) (pin 27)))
(net (code 24) (name /PD5)
(node (ref X1) (pin 26)))
(net (code 25) (name /PC4)
(node (ref UP1) (pin 1))
(node (ref X1) (pin 17)))
(net (code 26) (name /PC3)
(node (ref DOWN1) (pin 1))
(node (ref X1) (pin 16)))
(net (code 27) (name /PC6)
(node (ref BTN1) (pin 1))
(node (ref X1) (pin 19)))
(net (code 28) (name /PC7)
(node (ref X1) (pin 20))
(node (ref BTN2) (pin 1)))
(net (code 29) (name /PB4)
(node (ref POT1) (pin 1))
(node (ref X1) (pin 8)))
(net (code 30) (name +12V)
(node (ref D3) (pin 2))
(node (ref DRILL+1) (pin 1))
(node (ref K1) (pin 3)))
(net (code 31) (name /PB1)
(node (ref DA1) (pin 7))
(node (ref X1) (pin 11)))
(net (code 32) (name "/Drill motor/Sence")
(node (ref X1) (pin 6))
(node (ref R4) (pin 1))
(node (ref C6) (pin 1)))
(net (code 33) (name /PB0)
(node (ref DA1) (pin 6))
(node (ref X1) (pin 12)))
(net (code 34) (name /PB2)
(node (ref X1) (pin 10))
(node (ref DA2) (pin 6)))
(net (code 35) (name +3.3V)
(node (ref X1) (pin 1))
(node (ref U2) (pin 2))
(node (ref C5) (pin 1)))
(net (code 36) (name /PD3)
(node (ref DA3) (pin 7))
(node (ref X1) (pin 24)))
(net (code 37) (name /PD2)
(node (ref DA3) (pin 6))
(node (ref X1) (pin 23)))
(net (code 38) (name "")
(node (ref VT1) (pin 6))
(node (ref VT1) (pin 7))
(node (ref R5) (pin 1))
(node (ref VT1) (pin 2))
(node (ref VT1) (pin 3))
(node (ref R4) (pin 2)))))

View File

@ -1,42 +1,5 @@
update=Вт 19 авг 2014 18:02:55
last_client=cvpcb
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=" 0.600000"
PadDrillOvalY=" 0.600000"
PadSizeH=" 1.500000"
PadSizeV=" 1.500000"
PcbTextSizeV=" 1.500000"
PcbTextSizeH=" 1.500000"
PcbTextThickness=" 0.300000"
ModuleTextSizeV=" 1.000000"
ModuleTextSizeH=" 1.000000"
ModuleTextSizeThickness=" 0.150000"
SolderMaskClearance=" 0.000000"
SolderMaskMinWidth=" 0.000000"
DrawSegmentWidth=" 0.200000"
BoardOutlineThickness=" 0.100000"
ModuleOutlineThickness=" 0.150000"
[pcbnew/libraries]
LibName1=sockets
LibName2=connect
LibName3=discret
LibName4=pin_array
LibName5=divers
LibName6=smd_capacitors
LibName7=smd_resistors
LibName8=smd_dil
LibName9=smd_transistors
LibName10=libcms
LibName11=display
LibName12=led
LibName13=dip_sockets
LibName14=pga_sockets
LibName15=valves
LibName16=SOP8
LibDir=
update=Вс 16 ноя 2014 02:05:59
last_client=kicad
[eeschema]
version=1
LibDir=
@ -85,3 +48,44 @@ version=1
NetIExt=net
[cvpcb/libraries]
EquName1=devcms
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=" 0.000000"
PadDrillOvalY=" 0.000000"
PadSizeH=" 1.100000"
PadSizeV=" 0.300000"
PcbTextSizeV=" 1.500000"
PcbTextSizeH=" 1.500000"
PcbTextThickness=" 0.300000"
ModuleTextSizeV=" 1.000000"
ModuleTextSizeH=" 1.000000"
ModuleTextSizeThickness=" 0.150000"
SolderMaskClearance=" 0.000000"
SolderMaskMinWidth=" 0.000000"
DrawSegmentWidth=" 0.200000"
BoardOutlineThickness=" 0.100000"
ModuleOutlineThickness=" 0.150000"
[pcbnew/libraries]
LibDir=
LibName1=sockets
LibName2=connect
LibName3=discret
LibName4=pin_array
LibName5=divers
LibName6=smd_capacitors
LibName7=smd_resistors
LibName8=smd_dil
LibName9=smd_transistors
LibName10=libcms
LibName11=display
LibName12=led
LibName13=dip_sockets
LibName14=pga_sockets
LibName15=valves
LibName16=SOP8
LibName17=devboard_pins
LibName18=tssop-8
[general]
version=1

File diff suppressed because it is too large Load Diff

View File

@ -1,68 +1,6 @@
PCBNEW-LibModule-V1
PCBNEW-LibModule-V1 Вс 16 ноя 2014 00:03:38
# encoding utf-8
Units mm
$INDEX
SOP8
$EndINDEX
$MODULE SOP8
Po 0 0 0 15 0 0 ~~
Li SOP8
Sc 0
Op 0 0 0
T0 0 0 600 600 0 120 N V 21 "Test"
T1 0 0 600 600 0 120 N V 21 "VAL**"
DS -2125 -2125 2125 -2125 78 21
DS 2125 -2125 2125 2125 78 21
DS -2125 2125 2125 2125 78 21
DS -2125 -2125 -2125 2125 78 21
DS -1838 2759 -1161 2759 78 21
DS -1838 3838 -1161 3838 78 21
DS -1838 2759 -1838 3838 78 21
$PAD
Sh "1" R 598 999 0 0 1800
Dr 0 0 0
At SMD N 00888000
Po -1499 3299
$EndPAD
$PAD
Sh "2" R 598 999 0 0 1800
Dr 0 0 0
At SMD N 00888000
Po -499 3299
$EndPAD
$PAD
Sh "3" R 598 999 0 0 1800
Dr 0 0 0
At SMD N 00888000
Po 499 3299
$EndPAD
$PAD
Sh "4" R 598 999 0 0 1800
Dr 0 0 0
At SMD N 00888000
Po 1499 3299
$EndPAD
$PAD
Sh "5" R 598 999 0 0 0
Dr 0 0 0
At SMD N 00888000
Po 1499 -3299
$EndPAD
$PAD
Sh "6" R 598 999 0 0 0
Dr 0 0 0
At SMD N 00888000
Po 499 -3299
$EndPAD
$PAD
Sh "7" R 598 999 0 0 0
Dr 0 0 0
At SMD N 00888000
Po -499 -3299
$EndPAD
$PAD
Sh "8" R 598 999 0 0 0
Dr 0 0 0
At SMD N 00888000
Po -1499 -3299
$EndPAD
$EndMODULE Test
$EndLIBRARY

View File

@ -1,87 +0,0 @@
Cmp-Mod V01 Created by CvPcb (2013-may-18)-stable date = Вс 10 авг 2014 01:04:15
BeginCmp
TimeStamp = /53E68028;
Reference = C1;
ValeurCmp = 1u;
IdModule = C1;
EndCmp
BeginCmp
TimeStamp = /53E68EA1;
Reference = D1;
ValeurCmp = DIODESCH;
IdModule = D5;
EndCmp
BeginCmp
TimeStamp = /53E67E05;
Reference = P1;
ValeurCmp = CONN_2;
IdModule = SIL-2;
EndCmp
BeginCmp
TimeStamp = /53E688FF;
Reference = P2;
ValeurCmp = CONN_2;
IdModule = SIL-2;
EndCmp
BeginCmp
TimeStamp = /53E68B01;
Reference = P3;
ValeurCmp = CONN_2;
IdModule = SIL-2;
EndCmp
BeginCmp
TimeStamp = /53E67E1E;
Reference = Q1;
ValeurCmp = MOS_N;
IdModule = TO220;
EndCmp
BeginCmp
TimeStamp = /53E680EF;
Reference = R1;
ValeurCmp = 10k;
IdModule = SM0805;
EndCmp
BeginCmp
TimeStamp = /53E680BB;
Reference = R2;
ValeurCmp = 1k;
IdModule = SM0805;
EndCmp
BeginCmp
TimeStamp = /53E67E8A;
Reference = R3;
ValeurCmp = 1R;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /53E67E9C;
Reference = R4;
ValeurCmp = 1R;
IdModule = R3;
EndCmp
BeginCmp
TimeStamp = /53E682A8;
Reference = RV1;
ValeurCmp = POT;
IdModule = PIN_ARRAY_3X1;
EndCmp
BeginCmp
TimeStamp = /53E67DCE;
Reference = U1;
ValeurCmp = LM555N;
IdModule = DIP-8__300;
EndCmp
EndListe

File diff suppressed because it is too large Load Diff

View File

@ -1,193 +0,0 @@
(export (version D)
(design
(source /home/eddy/Docs/ELECTRONICS/STM8/STM8_samples/microdrill/schematics/drill.sch)
(date "Вс 10 авг 2014 01:04:08")
(tool "eeschema (2013-may-18)-stable"))
(components
(comp (ref U1)
(value LM555N)
(libsource (lib linear) (part LM555N))
(sheetpath (names /) (tstamps /))
(tstamp 53E67DCE))
(comp (ref P1)
(value CONN_2)
(libsource (lib conn) (part CONN_2))
(sheetpath (names /) (tstamps /))
(tstamp 53E67E05))
(comp (ref Q1)
(value MOS_N)
(libsource (lib device) (part MOS_N))
(sheetpath (names /) (tstamps /))
(tstamp 53E67E1E))
(comp (ref R3)
(value 1R)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 53E67E8A))
(comp (ref R4)
(value 1R)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 53E67E9C))
(comp (ref C1)
(value 1u)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 53E68028))
(comp (ref R2)
(value 1k)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 53E680BB))
(comp (ref R1)
(value 10k)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 53E680EF))
(comp (ref RV1)
(value POT)
(libsource (lib device) (part POT))
(sheetpath (names /) (tstamps /))
(tstamp 53E682A8))
(comp (ref P2)
(value CONN_2)
(libsource (lib conn) (part CONN_2))
(sheetpath (names /) (tstamps /))
(tstamp 53E688FF))
(comp (ref P3)
(value CONN_2)
(libsource (lib conn) (part CONN_2))
(sheetpath (names /) (tstamps /))
(tstamp 53E68B01))
(comp (ref D1)
(value DIODESCH)
(libsource (lib device) (part DIODESCH))
(sheetpath (names /) (tstamps /))
(tstamp 53E68EA1)))
(libparts
(libpart (lib device) (part C)
(description "Condensateur non polarise")
(footprints
(fp SM*)
(fp C?)
(fp C1-1))
(fields
(field (name Reference) C)
(field (name Value) C))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib device) (part DIODESCH)
(description "Diode schottky")
(footprints
(fp D?)
(fp S*))
(fields
(field (name Reference) D)
(field (name Value) DIODESCH))
(pins
(pin (num 1) (name A) (type passive))
(pin (num 2) (name K) (type passive))))
(libpart (lib device) (part MOS_N)
(docs transistors/mos/*.*)
(fields
(field (name Reference) Q)
(field (name Value) MOS_N))
(pins
(pin (num D) (name D) (type passive))
(pin (num G) (name G) (type input))
(pin (num S) (name S) (type passive))))
(libpart (lib device) (part POT)
(description Potentionmetre)
(fields
(field (name Reference) RV)
(field (name Value) POT))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))
(pin (num 3) (name 3) (type passive))))
(libpart (lib device) (part R)
(description Resistance)
(footprints
(fp R?)
(fp SM0603)
(fp SM0805)
(fp R?-*)
(fp SM1206))
(fields
(field (name Reference) R)
(field (name Value) R))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib conn) (part CONN_2)
(description "Symbole general de connecteur")
(fields
(field (name Reference) P)
(field (name Value) CONN_2))
(pins
(pin (num 1) (name P1) (type passive))
(pin (num 2) (name PM) (type passive))))
(libpart (lib linear) (part LM555N)
(docs ns/lm555.pdf)
(fields
(field (name Reference) U)
(field (name Value) LM555N))
(pins
(pin (num 1) (name GND) (type power_in))
(pin (num 2) (name TR) (type input))
(pin (num 3) (name Q) (type output))
(pin (num 4) (name R) (type input))
(pin (num 5) (name CV) (type input))
(pin (num 6) (name THR) (type input))
(pin (num 7) (name DIS) (type input))
(pin (num 8) (name VCC) (type power_in)))))
(libraries
(library (logical device)
(uri /usr/share/kicad/library/device.lib))
(library (logical linear)
(uri /usr/share/kicad/library/linear.lib))
(library (logical conn)
(uri /usr/share/kicad/library/conn.lib)))
(nets
(net (code 1) (name "")
(node (ref U1) (pin 7))
(node (ref R2) (pin 1)))
(net (code 2) (name "")
(node (ref U1) (pin 5))
(node (ref RV1) (pin 3))
(node (ref RV1) (pin 2)))
(net (code 3) (name "")
(node (ref Q1) (pin G))
(node (ref U1) (pin 3)))
(net (code 4) (name "")
(node (ref Q1) (pin D))
(node (ref D1) (pin 1))
(node (ref P1) (pin 2)))
(net (code 5) (name GND)
(node (ref R3) (pin 2))
(node (ref R4) (pin 2))
(node (ref P3) (pin 1))
(node (ref P2) (pin 1))
(node (ref RV1) (pin 1))
(node (ref U1) (pin 1))
(node (ref C1) (pin 2)))
(net (code 6) (name VCC)
(node (ref U1) (pin 4))
(node (ref U1) (pin 8))
(node (ref P2) (pin 2)))
(net (code 7) (name "")
(node (ref R1) (pin 2))
(node (ref Q1) (pin S))
(node (ref R4) (pin 1))
(node (ref R3) (pin 1)))
(net (code 8) (name +12V)
(node (ref D1) (pin 2))
(node (ref P3) (pin 2))
(node (ref P1) (pin 1)))
(net (code 9) (name "")
(node (ref C1) (pin 1))
(node (ref R2) (pin 2))
(node (ref R1) (pin 1))
(node (ref U1) (pin 2))
(node (ref U1) (pin 6)))))

View File

@ -1,67 +0,0 @@
update=Вт 19 авг 2014 18:08:41
version=1
last_client=pcbnew
[general]
version=1
[cvpcb]
version=1
NetIExt=net
[cvpcb/libraries]
EquName1=devcms
[eeschema]
version=1
LibDir=
NetFmtName=PcbnewAdvanced
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=texas
LibName8=contrib
LibName9=s8205a
LibName10=L9110
LibName11=LM1117
LibName12=stm8s105k4t6c
[pcbnew]
version=1
LastNetListRead=MCU_module.net
UseCmpFile=0
PadDrill=" 0.600000"
PadDrillOvalY=" 0.600000"
PadSizeH=" 1.500000"
PadSizeV=" 1.500000"
PcbTextSizeV=" 1.500000"
PcbTextSizeH=" 1.500000"
PcbTextThickness=" 0.300000"
ModuleTextSizeV=" 1.000000"
ModuleTextSizeH=" 1.000000"
ModuleTextSizeThickness=" 0.150000"
SolderMaskClearance=" 0.000000"
SolderMaskMinWidth=" 0.000000"
DrawSegmentWidth=" 0.200000"
BoardOutlineThickness=" 0.100000"
ModuleOutlineThickness=" 0.150000"
[pcbnew/libraries]
LibDir=
LibName1=sockets
LibName2=connect
LibName3=discret
LibName4=pin_array
LibName5=divers
LibName6=smd_capacitors
LibName7=smd_resistors
LibName8=smd_dil
LibName9=smd_transistors
LibName10=libcms
LibName11=display
LibName12=led
LibName13=dip_sockets
LibName14=pga_sockets
LibName15=valves

View File

@ -34,13 +34,13 @@ LIBS:L9110
LIBS:LM1117
LIBS:s8205a
LIBS:MCU_module-cache
EELAYER 27 0
EELAYER 24 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 2 2
Title ""
Date "20 oct 2014"
Date "14 nov 2014"
Rev ""
Comp ""
Comment1 ""
@ -48,28 +48,17 @@ Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L CONN_2 P7
U 1 1 53E67E05
P 5725 3400
F 0 "P7" V 5675 3400 40 0000 C CNN
F 1 "CONN_2" V 5775 3400 40 0000 C CNN
F 2 "" H 5725 3400 60 0000 C CNN
F 3 "" H 5725 3400 60 0000 C CNN
1 5725 3400
1 0 0 -1
$EndComp
Text Notes 5525 3150 0 60 ~ 0
Motor
$Comp
L GND #PWR28
L GND #PWR016
U 1 1 53E67E30
P 4800 5700
F 0 "#PWR28" H 4800 5700 30 0001 C CNN
F 1 "GND" H 4800 5630 30 0001 C CNN
F 2 "" H 4800 5700 60 0000 C CNN
F 3 "" H 4800 5700 60 0000 C CNN
1 4800 5700
P 4700 5700
F 0 "#PWR016" H 4700 5700 30 0001 C CNN
F 1 "GND" H 4700 5630 30 0001 C CNN
F 2 "" H 4700 5700 60 0000 C CNN
F 3 "" H 4700 5700 60 0000 C CNN
1 4700 5700
1 0 0 -1
$EndComp
$Comp
@ -77,28 +66,17 @@ L R R5
U 1 1 53E67E8A
P 4700 5350
F 0 "R5" V 4780 5350 50 0000 C CNN
F 1 "1R" V 4700 5350 50 0000 C CNN
F 2 "" H 4700 5350 60 0000 C CNN
F 1 "0.33R" V 4700 5350 50 0000 C CNN
F 2 "SM2512" H 4700 5350 60 0001 C CNN
F 3 "" H 4700 5350 60 0000 C CNN
1 4700 5350
1 0 0 -1
$EndComp
$Comp
L R R6
U 1 1 53E67E9C
P 4900 5350
F 0 "R6" V 4980 5350 50 0000 C CNN
F 1 "1R" V 4900 5350 50 0000 C CNN
F 2 "" H 4900 5350 60 0000 C CNN
F 3 "" H 4900 5350 60 0000 C CNN
1 4900 5350
1 0 0 -1
$EndComp
$Comp
L +12V #PWR29
L +12V #PWR017
U 1 1 53E67FAE
P 5375 3200
F 0 "#PWR29" H 5375 3150 20 0001 C CNN
F 0 "#PWR017" H 5375 3150 20 0001 C CNN
F 1 "+12V" H 5375 3300 30 0000 C CNN
F 2 "" H 5375 3200 60 0000 C CNN
F 3 "" H 5375 3200 60 0000 C CNN
@ -116,46 +94,21 @@ F 3 "" H 4350 5100 60 0000 C CNN
1 4350 5100
0 -1 -1 0
$EndComp
Wire Wire Line
4800 5700 4800 5600
Wire Wire Line
5375 3200 5375 3300
Wire Wire Line
4600 5100 5100 5100
Wire Wire Line
4800 5000 4800 5100
Connection ~ 4800 5100
Wire Wire Line
4700 5600 5100 5600
Connection ~ 4800 5600
Connection ~ 4700 5100
Wire Wire Line
5375 3500 5375 3700
$Comp
L DIODESCH D3
U 1 1 53E68EA1
P 5175 3400
F 0 "D3" H 5175 3500 40 0000 C CNN
F 1 "DIODESCH" H 5175 3300 40 0000 C CNN
F 2 "" H 5175 3400 60 0000 C CNN
F 3 "" H 5175 3400 60 0000 C CNN
1 5175 3400
P 5600 3400
F 0 "D3" H 5600 3500 40 0000 C CNN
F 1 "DIODESCH" H 5600 3300 40 0000 C CNN
F 2 "" H 5600 3400 60 0000 C CNN
F 3 "" H 5600 3400 60 0000 C CNN
1 5600 3400
0 -1 -1 0
$EndComp
Wire Wire Line
5175 3200 5375 3200
Connection ~ 5375 3200
Wire Wire Line
5175 3600 5375 3600
Connection ~ 5375 3600
Text HLabel 3200 4350 0 60 Input ~ 0
PWM_in
Text HLabel 3150 5100 0 60 Output ~ 0
Sence
Wire Wire Line
3150 5100 4100 5100
Wire Wire Line
4550 4350 3200 4350
$Comp
L S8205A VT1
U 1 1 53F123C0
@ -167,6 +120,38 @@ F 3 "~" H 5450 4150 60 0000 C CNN
1 5300 4150
1 0 0 -1
$EndComp
$Comp
L GND #PWR018
U 1 1 53F35910
P 4000 5700
F 0 "#PWR018" H 4000 5700 30 0001 C CNN
F 1 "GND" H 4000 5630 30 0001 C CNN
F 2 "" H 4000 5700 60 0000 C CNN
F 3 "" H 4000 5700 60 0000 C CNN
1 4000 5700
1 0 0 -1
$EndComp
$Comp
L CP1 C6
U 1 1 53F36070
P 4000 5400
F 0 "C6" H 4050 5500 50 0000 L CNN
F 1 "0.1u" H 4050 5300 50 0000 L CNN
F 2 "SM0603" H 4000 5400 60 0001 C CNN
F 3 "" H 4000 5400 60 0000 C CNN
1 4000 5400
1 0 0 -1
$EndComp
Wire Wire Line
3200 3200 5600 3200
Connection ~ 5375 3200
Wire Wire Line
3200 3600 5600 3600
Connection ~ 5375 3600
Wire Wire Line
3150 5100 4100 5100
Wire Wire Line
4550 4350 3200 4350
Connection ~ 4550 4350
Wire Wire Line
4550 4350 4550 4600
@ -174,19 +159,6 @@ Wire Wire Line
4550 4600 6050 4600
Wire Wire Line
6050 4600 6050 4350
$Comp
L R R7
U 1 1 53F123DF
P 5100 5350
F 0 "R7" V 5180 5350 50 0000 C CNN
F 1 "1R" V 5100 5350 50 0000 C CNN
F 2 "" H 5100 5350 60 0000 C CNN
F 3 "" H 5100 5350 60 0000 C CNN
1 5100 5350
1 0 0 -1
$EndComp
Connection ~ 4900 5600
Connection ~ 4900 5100
Wire Wire Line
4550 4075 4550 4225
Wire Wire Line
@ -201,7 +173,6 @@ Wire Wire Line
6175 5000 6175 4225
Wire Wire Line
6175 4225 6050 4225
Connection ~ 4800 5000
Connection ~ 6050 4225
Connection ~ 4550 4225
Wire Wire Line
@ -211,31 +182,23 @@ Wire Wire Line
Wire Wire Line
6050 3700 6050 3950
Connection ~ 5375 3700
$Comp
L GND #PWR27
U 1 1 53F35910
P 4000 5700
F 0 "#PWR27" H 4000 5700 30 0001 C CNN
F 1 "GND" H 4000 5630 30 0001 C CNN
F 2 "" H 4000 5700 60 0000 C CNN
F 3 "" H 4000 5700 60 0000 C CNN
1 4000 5700
1 0 0 -1
$EndComp
Wire Wire Line
4000 5700 4000 5600
Wire Wire Line
4000 5200 4000 5100
Connection ~ 4000 5100
$Comp
L CP1 C6
U 1 1 53F36070
P 4000 5400
F 0 "C6" H 4050 5500 50 0000 L CNN
F 1 "47u" H 4050 5300 50 0000 L CNN
F 2 "" H 4000 5400 60 0000 C CNN
F 3 "" H 4000 5400 60 0000 C CNN
1 4000 5400
1 0 0 -1
$EndComp
Wire Wire Line
4700 5700 4700 5600
Wire Wire Line
4700 5100 4600 5100
Wire Wire Line
4650 5100 4650 5000
Connection ~ 4650 5000
Connection ~ 4650 5100
Wire Wire Line
5375 3700 5375 3600
Text HLabel 3200 3200 0 60 Output ~ 0
DRILL+
Text HLabel 3200 3600 0 60 Output ~ 0
DRILL-
$EndSCHEMATC

View File

@ -1,4 +1,4 @@
EESchema-LIBRARY Version 2.3 Date: Вс 17 авг 2014 23:25:12
EESchema-LIBRARY Version 2.3 Date: Вс 16 ноя 2014 01:24:45
#encoding utf-8
#
# S8205A
@ -56,7 +56,7 @@ X S1 2 -750 75 300 R 50 50 1 1 P
X S1 3 -750 -75 300 R 50 50 1 1 P
X G1 4 -750 -200 300 R 50 50 1 1 P
X G2 5 750 -200 300 L 50 50 1 1 P
X S2 5 750 -75 300 L 50 50 1 1 P
X S2 6 750 -75 300 L 50 50 1 1 P
X S2 7 750 75 300 L 50 50 1 1 P
X D 8 750 200 300 L 50 50 1 1 P
ENDDRAW

View File

@ -1,4 +1,4 @@
EESchema-LIBRARY Version 2.3 Date: Вт 11 фев 2014 17:26:38
EESchema-LIBRARY Version 2.3 Date: Пт 26 сен 2014 22:55:41
#encoding utf-8
#
# STM8S003K3T
@ -48,6 +48,49 @@ X PD4/BEEP/TIM2_CH1 29 -1000 250 149 R 40 40 1 1 B
ENDDRAW
ENDDEF
#
# stm8s105board
#
DEF stm8s105board X 0 40 Y Y 1 F N
F0 "X" 0 1050 60 H V C CNN
F1 "stm8s105board" 0 -650 60 H V C CNN
F2 "devboard_pins-9-14" 0 0 60 H I C CNN
F3 "~" 0 0 60 H V C CNN
$FPLIST
stm8s105board
$ENDFPLIST
DRAW
S -1100 950 1100 -550 0 1 0 N
X VDD(3.3-5v) 1 -1400 850 300 R 50 50 1 1 W
X GND 2 -1400 750 300 R 50 50 1 1 W
X NRST 3 -1400 650 300 R 50 50 1 1 I
X OSCIN/PA1 4 -1400 550 300 R 50 50 1 1 T
X OSCOUT/PA2 5 -1400 450 300 R 50 50 1 1 T
X PF4/AIN12 6 -1400 350 300 R 50 50 1 1 T
X PB5/AIN5[I2X_SDA] 7 -1400 250 300 R 50 50 1 1 T
X PB4/AIN4[I2C_SCL] 8 -1400 150 300 R 50 50 1 1 T
X PB3/AIN3[TIM1_ETR] 9 -1400 50 300 R 50 50 1 1 T
X PB2/AIN2[TIM1_CH3N] 10 -1400 -50 300 R 50 50 1 1 T
X PC7(HS)/SPI_MISO 20 1400 50 300 L 50 50 1 1 T
X PB1/AIN1_[TIM1_CH2N] 11 -1400 -150 300 R 50 50 1 1 T
X PD0(HS)/TIM3_CH2[TIM1_BKIN][CLK_CCO] 21 1400 150 300 L 50 39 1 1 T
X PB0/AIN0_[TIM1_CH1N] 12 -1400 -250 300 R 50 50 1 1 T
X PD1(HS)/SWIM 22 1400 250 300 L 50 50 1 1 T
X PE5/SPI_NSS 13 -1400 -350 300 R 50 50 1 1 T
X PD2(HS)/TIM3_CH1[TIM2_CH3] 23 1400 350 300 L 50 50 1 1 T
X PC1(HS)/TIM1_CH1 14 -1400 -450 300 R 50 50 1 1 T
X PD3(HS)/TIM2_CH2[ADC_ETR] 24 1400 450 300 L 50 50 1 1 T
X PC2(HS)/TIM1_CH2 15 1400 -450 300 L 50 50 1 1 T
X PD4(HS)/TIM2_CH1[BEEP] 25 1400 550 300 L 50 50 1 1 T
X PC3(HS)/TIM1_CH3 16 1400 -350 300 L 50 50 1 1 T
X PD5/UART2_TX 26 1400 650 300 L 50 50 1 1 T
X PC4(HS)/TIM1_CH4 17 1400 -250 300 L 50 50 1 1 T
X PD6/UART2_RX 27 1400 750 300 L 50 50 1 1 T
X PC5(HS)/SPI_SCK 18 1400 -150 300 L 50 50 1 1 T
X PD7/TLI[TIM1_CH4] 28 1400 850 300 L 50 50 1 1 T
X PC6(HS)/SPI_MOSI 19 1400 -50 300 L 50 50 1 1 T
ENDDRAW
ENDDEF
#
# STM8S105K4T6C
#
DEF STM8S105K4T6C U 0 40 Y Y 1 F N

View File

@ -2,126 +2,141 @@
:2080C000A604F7909E0F01AE530DF74FAE530E909FF7AE5301A601F7AE5300F6AA84AE5372
:2080E00000F75B02811E03A300002E0B3501000D1E03501F032004725F000D16035F905D71
:208100002A015A90CF000BCF0009AE5300F6AA01AE5300F781AE5300F6A4FEAE5300F7727A
:208120005F000C725F000B725F000A725F0009AE5005F6A4F0AE5005F7AE820C89CD841195
:208120005F000C725F000B725F000A725F0009AE5005F6A4F0AE5005F7AE820C89CD84D5D1
:208140005B0281CE000B2607CE0009272D2000AE5300F6959EA5012711A4FEAE5300F7AEA0
:20816000821289CD84115B0220109EAA01AE5300F7AE821989CD84115B0281AE5300F6A405
:20816000821289CD84D55B0220109EAA01AE5300F7AE821989CD84D55B0281AE5300F6A47D
:20818000FEAE5300F7CE000B2610CE0009260B1E0389CD80E55B02CC820B16035F905D2AB1
:2081A000015A909F909772B9000B9FC9000A979EC900099590CF000BCF0009CE000BA3000C
:2081C00000C6000AA200C60009A2002E2AAE822189CD84115B02C6000DA0014F49C7000DEB
:2081C00000C6000AA200C60009A2002E2AAE822189CD84D55B02C6000DA0014F49C7000D27
:2081E00090CE000B90504FC2000A974FC200099590CF000BCF0009CE000B2605CE00092791
:208200000AAE5300F6AA01AE5300F78173746F700A0070617573650A00726573756D650AA6
:0A82200000726576657263650A005E
:078F0000000000000000006A
:20822A008080808080AE500E7F356400168080808080805202AE5302F66B027B02442503D7
:20824A00CC82D97B02A4FEAE5302F7AE5005F6A4F06B01AE001D9FCB0011979EA90095F62C
:0790DC00000000000000008D
:20822A008080808080AE500E7F356400198080808080805202AE5302F66B027B02442503D4
:20824A00CC82D97B02A4FEAE5302F7AE5005F6A4F06B01AE00229FCB0011979EA90095F627
:20826A001A01AE5005F7725D000D272C725C0011C60011A1072D4B725F001190CE000B721D
:20828A00A20001C6000AA20097C60009A2009590CF000BCF0009202A725A0011C60011A141
:2082AA00002E1F3507001190CE000B72A20001C6000AA20097C60009A2009590CF000BCF54
:2082CA000009CE000B2608CE00092603CD81155B028080808080805204AE5240F66B047B4E
:2082EA0004A5202750AE5241F66B017B04A4804D27FDAE52417B01F7AE00011F02C6001C17
:20830A0097C6001C4CC7001C4F9572FB027B01F7C6001BC1001C2612C6001B4CC7001BC61A
:20832A00001BA1082604725F001BC6001CA1082604725F001C5B04805202AE5405F65F9791
:20834A001F01AE5404F65F9758585858585858589F1A02979E1A0195CF0025725D0019279E
:20836A0053725D001A274DA30032230EAE5266F64D27414AAE5266F7203AA300032423AE90
:20838A00526DF6A47FAE526DF7AE500AF6A4FDAE500AF7725F0019AE83F389CD84115B02A3
:2083AA002012A3001E240DAE5266F6A16424054CAE5266F7AE5400F6A43FAE5400F75B022B
:2083CA0080AE5342F644241B90CE001472A90001C60013A90097C60012A9009590CF001427
:1983EA00CF0012AE53427F80804E6F206472696C6C206D6F746F723F0053
:028F0700000068
:2082EA0004A5202750AE5241F66B017B04A4804D27FDAE52417B01F7AE00011F02C6002112
:20830A0097C600214CC700214F9572FB027B01F7C60020C100212612C600204CC70020C6FC
:20832A000020A1082604725F0020C60021A1082604725F00215B04805208AE5405F65F9777
:20834A001F03AE5400F6A40F9095AE5404F65F9758585858585858589F1A046B089E1A0384
:20836A006B017B086B02909EA10C2703CC83EC7B02C7002B7B01C7002A725D001C275A729D
:20838A005D001E27541E01A30032230EAE5266F64D27464AAE5266F7203F1E01A3000324B3
:2083AA0023AE526DF6A47FAE526DF7AE500AF6A4FDAE500AF7725F001CAE84B789CD84D583
:2083CA005B0220151E01A3001E240EAE5266F6C1001424054CAE5266F7AE5400A624F7CC5D
:2083EA00848C1E01C300122408CE001272F001200C7B02C00013977B01C2001295A3000560
:20840A002403CC84867B02C700137B01C70012725D001F272616015F9089894B645F894B74
:20842A0000CD8F775B08A60A4D27069054564A26FA9FC70014AE5266F7204116015F908967
:20844A00894BE04B015F89CD8F775B08A60A4D27069054564A26FA1C00141F051E05A3010B
:20846A00F423191E05A3001423127B06C7002D7B05C7002C1E0589CD80B55B02AE5400A618
:20848A002CF75B0880AE5342F644241B90CE001772A90001C60016A90097C60015A900954A
:1D84AA0090CF0017CF0015AE53427F80804E6F206472696C6C206D6F746F723F0015
:0590E300000000006424
:2080000082008083820000008200822A8200822B8200822C8200822D8200822E8200822F36
:20802000820082388200823982000000820000008200823A8200823B8200823C8200823DC5
:20804000820082DC820082DD820082DE8200000082000000820082DF820082E0820082E1CD
:2080600082008342820083CB820083F2820000008200000082000000820000008200000068
:1D808300AE00082707724F00005A26F9AE001F2709D68EFFD700085A26F7CC808040
:03808000CC871F8B
:20840300AE5240F64824F9AE52417B03F781160390F64D271BAE5240F64824F9AE5245F683
:20842300AA08AE5245F790F6905CAE5241F720E0815202C6001CC1001B26034F2027160534
:20844300AE00011F01C6001B97C6001B4CC7001B4F9572FB01F690F7C6001BA108260472CE
:208463005F001BA6015B0281521C5F1F031F017B21A1042303CC85437B21A1032603CC8536
:20848300430D212603CC8543961C00051F124F5F9772FB127F4CA10C25F51E121C000AA671
:2084A3000AF77B21A101270E7B21A102271C7B21A104272120301E1FF66B1C5F0F191F0288
:2084C3007B1C6B047B196B01201C161F90FE5F17031F0120111E1FE6036B18E602FE6B03CD
:2084E3001F017B186B04A6096B114B0A5F894B001E07891E0789CD8C7F5B089F887B126BEE
:2085030015840A115F417B144172FB12AB30F74B0A5F894B001E07891E0789CD8CFC5B0847
:208523001F0317011E0326041E0127067B11A1FF2CB87B114C5F9772FB1289CD84115B02C2
:208543005B1C81521ACE00141F0BCE00121F095F1F071F050F020F0E0F0D965C89CD8434AD
:208563005B024D2603CC85E87B01A12D260E1E07260A1E052606A6016B0220697B01A130E0
:208583002403CC860A7B01A1392303CC860AA6016B0E1E07891E07894B0A5F894B00CD8D1F
:2085A3009B5B081F1517137B010F115F90977B11909572F9159F1914979E19139572A20033
:2085C300309FA2006B189EA20017076B057B186B06AE7FFF13074F12064F120524075F1F16
:2085E300071F050F0D90CE001472F20BC60013120A95C6001212099790A327109EA2009FF3
:20860300A2002403CC855D0D0D26040D0E26034F201A7B07887B096B05846B030D022705A4
:208623001E03501F031E1D1603FFA6015B1A81AE8B2489CD84115B021E0389CD84115B02A6
:208643004B0ACD840384815202AE500BF6A4F86B017B01C100272603CC87167B01C80027AD
:208663006B027B02A52027407B01A5202628725D0019260EAE526DF6AA80AE526DF735010F
:2086830000194B784BECCD817B5B02AE8B2D89CD84115B0220124B784BECCD817B5B02AEF0
:2086A3008B3889CD84115B027B02A518271B7B01A418A1182713AE8B4189CD84115B02AE95
:2086C300500FF6A4F3AE500FF77B02A4C0A1C026137B01A4C0A1C0270BAE8B4C89CD841149
:2086E3005B02202A7B02A54027117B01A540260BAE8B5A89CD84115B0220137B0248240E9F
:208703007B01482509AE8B6489CD84115B027B01C70027AE500EA6F8F75B028152115F1FB5
:20872300091F075F1F051F03AE7F60F6AA01AE7F60F7AE50C67FAE5345A607F7AE5346A696
:208743007DF7AE5341A601F7AE5340A685F7AE52607FAE5261A603F7AE52627FAE5263A695
:2087630064F7AE52657FAE5266A60AF7AE5258A660F7AE525CA601F7AE52547FAE5250A692
:2087830085F7AE5400A62CF7AE5406A610F7AE5402A608F7AE5401A673F7AE5401A673F70B
:2087A300AE50A0A630F7AE500DF6AAF8AE500DF7AE500EA6F8F7AE500CF6AA02AE500CF758
:2087C300AE526DF6A47FAE526DF7AE500AF6A4FDAE500AF7725F0019AE500CF6AA04AE5078
:2087E3000CF7AE500DF6AA04AE500DF7AE5011F6AA20AE5011F7AE5012F6AA20AE5012F716
:20880300AE5242A611F7AE5243A606F7AE5245A62CF79A4BE84B03CD80B55B02CD80A01EEC
:2088230005C3001426071E03C300122727CE00141F05CE00121F03C60016A1002D09C60067
:20884300164AC70016200D725D0016260735FF0016CD864ACE001472F0091F0FC60013124C
:20886300086B0EC600121207CE0017905F881310909F120F909E12015B012511CE001413EC
:2088830009C600131208C6001212072414CE00141F09CE00121F07AE500AF6A804AE500AEE
:2088A300F7961C000C89CD84345B024D2603CC88227B0C6B117B11A12B2603CC89787B11CC
:2088C300A12D2603CC89977B11A1302603CC8A697B11A1312603CC8A847B11A13C2603CCAE
:2088E3008AA87B11A13E2603CC8A957B11A1482603CC896C7B11A14D2603CC89FB7B11A145
:20890300532603CC89B67B11A1612603CC8A437B11A1632603CC8AFE7B11A1642603CC8A60
:20892300DC7B11A1672603CC8B0C7B11A16827397B11A16D2603CC89ED7B11A1702603CCAC
:208943008A3D7B11A1732603CC89DF7B11A1752603CC8ABA7B11A1782603CC8A377B11A1ED
:208963007A2603CC8B05CC8822AE8B6E89CD84115B02CC8822CE00171C0064CF0017CE0001
:2089830017A327102203CC882235F4001835010017CC8822CE00171D0064CF0017CE001713
:2089A300A300642503CC882235640018725F0017CC8822965C89CD85465B024D27121E01EB
:2089C300A3007D2D0B1E0189CD80B55B02CC8822AE8C5889CD86325B02CC8822AE000E4B45
:2089E3000289CD846B5B03CC8822AE00094B0489CD846B5B03CC8822CE000B2605CE00095F
:208A0300270CAE8C6289CD86325B02CC8822965C89CD85465B024D270F1E01270B1E0189B7
:208A2300CD80E55B02CC8822AE8C6A89CD86325B02CC8822CD8115CC8822CD8143CC8822C9
:208A4300965C89CD85465B024D270F1E01270B1E0189CD817B5B02CC8822AE8C7589CD8600
:208A6300325B02CC8822AE526DF6A47FAE526DF7AE500AF6A4FDAE500AF7725F0019CC8828
:208A830022AE526DF6AA80AE526DF735010019CC8822AE5266F6A1642503CC88224CAE52B0
:208AA30066F7CC8822AE5266F64D2603CC88224AAE5266F7CC8822AE500BF6A5102703CCD1
:208AC3008822AE500FF6A4F3AE500FF7AE500AF6AA04AE500AF7CC8822AE500BF6A5082757
:208AE30003CC8822AE500FF6A4F3AE500FF7AE500AF6AA08AE500AF7CC8822725F001ACC80
:208B030088223501001ACC8822AE5266F66B0B961C000B4B0189CD846B5B03CC88225B1182
:208B2300810A4552524F523A20006D6F766520646F776E0A006D6F76652075700A0074727E
:208B430061792073746F700A00626F746820627574746F6E730A00627574746F6E20310A6B
:208B630000627574746F6E20320A000A50524F544F3A0A2B2F2D094C454420706572696F74
:208B8300640A532F73097365742F676574204D73706565640A6D096765742073746570731E
:208BA3000A780973746F700A700970617573652F726573756D650A4D096D6F7665206D6FED
:208BC300746F720A6109616464204E737470730A30097475726E206472696C6C204F46462A
:208BE3000A31097475726E206472696C6C204F4E0A3E09726F7461746520666173746572EC
:208C03000A3C09726F7461746520736C6F7765720A7509747261792075700A6409747261AC
:208C23007920646F776E0A63096175746F207370656564206F66660A7A096175746F20734C
:208C430070656564206F6E0A67096765742073706565640A00626164207370656564006DBC
:1C8C63006F76696E672100626164204E7374657073006261642076616C75650089
:168F090000000000FF01F400000000080A0206040501090000F839
:208C7F0052040F020F017B0B484F494D262E160D1E0B905859170D1F0B1E09130D7B0812A0
:208C9F000C7B07120B240D160D1E0B549056170D1F0B20080C017B016B0220CA7B026B0411
:208CBF001E09130D7B08120C7B07120B2513160972F20D7B08120C977B07120B9517091F9B
:208CDF0007160D1E0B549056170D1F0B7B046B030A040D0326CA1E0916075B048152125FB8
:208CFF001F051F03A6206B027B15484F496B0116171E1590585917171F157B036B0F1E04E3
:208D1F00887B076B1384081259090F1F047B126B067B0F6B030D01271A7B06AA016B0A7B19
:208D3F00056B097B046B087B036B0716091705160717031E05131B7B04121A7B031219257D
:208D5F002B160572F21B7B04121A6B0C7B03121917056B037B0C6B047B18AA0190977B17ED
:208D7F0090957B16977B159517171F150A020D022703CC8D071E1716155B12815240909655
:208D9F00905C961C00431F0B1E0BE603961C00471F151E151F171E171F3F1E3F88E601970B
:208DBF00844290FF72A900021E0BE6031E151F111E111F131E131F191E1988E603978442DE
:208DDF0090FF965C1F1B1E1BF66B1D1E0BF697161590E603429F1B1D1E1BF71E1BF66B1EA7
:208DFF001E0BE60197161590E602429F1B1E1E1BF79096905C93FE1F1F1E0BE6011E151F7D
:208E1F00211E211F231E231F251E2588E60397844272FB1F90FF93FE1F271E0BE6021E15C5
:208E3F001F291E291F2B1E2B1F2F1E2F88E60297844272FB2790FF160B1E0BE6021E151FE2
:208E5F00311E311F331E331F351E3588E6019784429F90F71E0B5C1F371E0BE60290971E06
:208E7F0015E60390421E37FF16151E0BE6031E151F3D1E3D1F051E0588F69784429F90F740
:208E9F001E155C1F2D1E0BE60390971E15E60290421E2DFF1E151C00037F1E0B1C00037FD0
:208EBF00965CE6036B0AE6026B09E6016B08F61643170D164572F909173B887B09190F6B5A
:208EDF003B84190D6B39163BEF021639FFFE16491E4772F93B9F193A979E193995515B40F8
:018EFF0081F1
:20806000820083428200848F820084B68200000082000000820000008200000082000000DE
:1D808300AE00082707724F00005A26F9AE00262709D690DBD700085A26F7CC80805B
:03808000CC88E8C1
:2084C700AE5240F64824F9AE52417B03F781160390F64D271BAE5240F64824F9AE5245F6BF
:2084E700AA08AE5245F790F6905CAE5241F720E0815202C60021C1002026034F2027160566
:20850700AE00011F01C6002097C600204CC700204F9572FB01F690F7C60020A108260472F5
:208527005F0020A6015B0281521C5F1F101F0E7B21A1042303CC86057B21A1032603CC868E
:20854700050D212603CC8605965C1F1B4F5F9772FB1B7F4CA10C25F51E1B1C000AA60AF7D0
:208567007B21A101270E7B21A102271C7B21A104272120301E1FF66B1A5F0F171F0F7B1A26
:208587006B117B176B0E201C161F90FE5F17101F0E20111E1FE6036B16E602FE6B101F0E35
:2085A7007B166B11A6096B0D4B0A5F894B001E14891E1489CD8E5B5B089F887B0E6B1384B7
:2085C7000A0D5F417B124172FB1BAB30F74B0A5F894B001E14891E1489CD8ED85B081F10F2
:2085E700170E1E1026041E0E27067B0DA1FF2CB87B0D4C5F9772FB1B89CD84D55B025B1CBD
:2086070081521ACE00171F03CE00151F015F1F071F050F0C0F0A0F09961C000B89CD84F8D8
:208627005B024D2603CC86AC7B0BA12D260E1E07260A1E052606A6016B0C20697B0BA13038
:208647002403CC86CE7B0BA1392303CC86CEA6016B0A1E07891E07894B0A5F894B00CD8FCA
:20866700775B081F11170F7B0B0F155F90977B15909572F9119F1910979E190F9572A20094
:20868700309FA2006B189EA20017076B057B186B06AE7FFF13074F12064F120524075F1F51
:2086A700071F050F0990CE001772F203C60016120295C6001512019790A327109EA2009F41
:2086C700A2002403CC861F0D0926040D0A26034F201A7B07887B096B0F846B0D0D0C270507
:2086E7001E0D501F0D1E1D160DFFA6015B1A81AE8CF989CD84D55B021E0389CD84D55B0266
:208707004B0ACD84C784815202AE500BF6959EA4F86B027B02C1002E2603CC88DF7B02C844
:20872700002E6B017B01A52027549EA508264F7B02A5202628725D001C260EAE526DF6AA60
:2087470080AE526DF73501001C4B784BECCD817B5B02AE8D0289CD84D55B022021725D0063
:208767001D2709725F001DCD811520124B784BECCD817B5B02AE8D0D89CD84D55B027B0132
:20878700A518272E7B02A418A1182726AE8D1689CD84D55B02AE500FF6A4F3AE500FF7AED8
:2087A700500BF6A508260B3B002D3B002CCD80B55B027B01A4C0A1C02703CC887D7B02A4F8
:2087C700C0A1C02603CC887DAE8D2189CD84D55B02AE526DF6A47FAE526DF7AE500AF6A483
:2087E700FDAE500AF7725F001CAE500BF6A510263EAE8D2C89CD84D55B024B484BF4CD80DF
:20880700E55B02CE000B26FBCE000926F6AE500BF6A5082703CC88DAAE500FF6A4F3AE5086
:208827000FF7AE500AF6AA08AE500AF7CC88DAAE8D3289CD84D55B024BF44B01CD80B55BED
:20884700024BB84B0BCD80E55B02CE000B26FBCE000926F6AE500BF6A5102703CC88DAAE80
:20886700500FF6A4F3AE500FF7AE500AF6AA04AE500AF7CC88DA7B01A540273A7B02A54004
:208887002634AE8D3689CD84D55B024BF44B01CD80B55B024B484BF4CD80E55B02CE000BD6
:2088A70026FBCE000926F64B144B00CD80B55B023501001D201D7B014824187B0248251307
:2088C700AE8D4089CD84D55B02C6001FA0014F49C7001F7B02C7002EAE500EA6F8F75B0296
:2088E7008152115F1F0B1F095F1F071F05AE7F60F6AA01AE7F60F7AE50C67FAE5345A6074B
:20890700F7AE5346A67DF7AE5341A601F7AE5340A685F7AE52607FAE5261A603F7AE526273
:208927007FAE5263A664F7AE52657FAE5266A60AF7AE5258A660F7AE525CA601F7AE5254B9
:208947007FAE5250A685F7AE5400A62CF7AE5406A610F7AE5407A610F7AE5402A608F7AE92
:208967005401A673F7AE5401A673F7AE50A0A630F7AE500DF6AAF8AE500DF7AE500EA6F8BE
:20898700F7AE500CF6AA02AE500CF7AE526DF6A47FAE526DF7AE500AF6A4FDAE500AF77232
:2089A7005F001CAE500CF6AA04AE500CF7AE500DF6AA04AE500DF7AE5011F6AA20AE5011F7
:2089C700F7AE5012F6AA20AE5012F7AE5242A611F7AE5243A606F7AE5245A62CF79A3B0009
:2089E7002D3B002CCD80B55B02CD80A01E07C3001726071E05C300152727CE00171F07CE42
:208A070000151F05C60019A1002D09C600194AC70019200D725D0019260735FF0019CD8774
:208A27000ECE001772F00B1F0FC60016120A6B0EC600151209CE001A905F881310909F1277
:208A47000F909E12015B012511CE0017130BC60016120AC6001512092414CE00171F0BCE27
:208A670000151F09AE500AF6A804AE500AF7965C5C89CD84F85B024D2603CC89F37B026BE6
:208A8700117B11A12B2603CC8B487B11A12D2603CC8B677B11A1302603CC8C3F7B11A131E2
:208AA7002603CC8C5A7B11A13C2603CC8C7F7B11A13E2603CC8C6B7B11A1482603CC8B3CE3
:208AC7007B11A14D2603CC8BCD7B11A1532603CC8B867B11A1612603CC8C177B11A1632666
:208AE70003CC8CD57B11A1642603CC8CB37B11A1672603CC8CE37B11A16827397B11A16DF3
:208B07002603CC8BBF7B11A1702603CC8C117B11A1732603CC8BB17B11A1752603CC8C915B
:208B27007B11A1782603CC8C0B7B11A17A2603CC8CDCCC89F3AE8D4A89CD84D55B02CC89CB
:208B4700F3CE001A1C0064CF001ACE001AA327102203CC89F335F4001B3501001ACC89F3BF
:208B6700CE001A1D0064CF001ACE001AA300642503CC89F33564001B725F001ACC89F396C0
:208B87001C000389CD86085B024D27121E03A3007D2D0B1E0389CD80B55B02CC89F3AE8EE2
:208BA7003489CD86F65B02CC89F3AE000E4B0289CD852F5B03CC89F3AE00094B0489CD8569
:208BC7002F5B03CC89F3CE000B2605CE0009270CAE8E3E89CD86F65B02CC89F3961C000305
:208BE70089CD86085B024D270F1E03270B1E0389CD80E55B02CC89F3AE8E4689CD86F65B27
:208C070002CC89F3CD8115CC89F3CD8143CC89F3961C000389CD86085B024D270F1E0327BE
:208C27000B1E0389CD817B5B02CC89F3AE8E5189CD86F65B02CC89F3AE526DF6A47FAE5280
:208C47006DF7AE500AF6A4FDAE500AF7725F001CCC89F3AE526DF6AA80AE526DF7350100AF
:208C67001CCC89F3AE5266F6C100142503CC89F34CAE5266F7CC89F3AE5266F64D2603CC59
:208C870089F34AAE5266F7CC89F3AE500BF6A5102703CC89F3AE500FF6A4F3AE500FF7AEF0
:208CA700500AF6AA04AE500AF7CC89F3AE500BF6A5082703CC89F3AE500FF6A4F3AE500FA3
:208CC700F7AE500AF6AA08AE500AF7CC89F3725F001ECC89F33501001ECC89F3AE5266F670
:208CE7006B01965C4B0189CD852F5B03CC89F35B11810A4552524F523A20006D6F76652061
:208D0700646F776E0A006D6F76652075700A00747261792073746F700A006D6F76652074C9
:208D27007261792000646F776E0A0075700A00627574746F6E20310A00627574746F6E205C
:208D4700320A000A50524F544F3A0A2B2F2D094C454420706572696F640A532F7309736506
:208D6700742F676574204D73706565640A6D096765742073746570730A780973746F700A21
:208D8700700970617573652F726573756D650A4D096D6F7665206D6F746F720A61096164D4
:208DA70064204E737470730A30097475726E206472696C6C204F46460A31097475726E20A5
:208DC7006472696C6C204F4E0A3E09726F74617465206661737465720A3C09726F746174BA
:208DE7006520736C6F7765720A7509747261792075700A64097472617920646F776E0A6382
:208E0700096175746F207370656564206F66660A7A096175746F207370656564206F6E0A7F
:208E270067096765742073706565640A00626164207370656564006D6F76696E67210062D5
:148E47006164204E7374657073006261642076616C75650051
:1A90E80000000000FF01F4000000000000080A02060405010900000032F823
:208E5B0052040F020F017B0B484F494D262E160D1E0B905859170D1F0B1E09130D7B0812C2
:208E7B000C7B07120B240D160D1E0B549056170D1F0B20080C017B016B0220CA7B026B0433
:208E9B001E09130D7B08120C7B07120B2513160972F20D7B08120C977B07120B9517091FBD
:208EBB0007160D1E0B549056170D1F0B7B046B030A040D0326CA1E0916075B048152125FDA
:208EDB001F051F03A6206B027B15484F496B0116171E1590585917171F157B036B0F1E0405
:208EFB00887B076B1384081259090F1F047B126B067B0F6B030D01271A7B06AA016B0A7B3C
:208F1B00056B097B046B087B036B0716091705160717031E05131B7B04121A7B031219259F
:208F3B002B160572F21B7B04121A6B0C7B03121917056B037B0C6B047B18AA0190977B170F
:208F5B0090957B16977B159517171F150A020D022703CC8EE31E1716155B1281524090969A
:208F7B00905C961C00431F0B1E0BE603961C00471F151E151F171E171F3F1E3F88E601972D
:208F9B00844290FF72A900021E0BE6031E151F111E111F131E131F191E1988E60397844200
:208FBB0090FF965C1F1B1E1BF66B1D1E0BF697161590E603429F1B1D1E1BF71E1BF66B1EC9
:208FDB001E0BE60197161590E602429F1B1E1E1BF79096905C93FE1F1F1E0BE6011E151F9F
:208FFB00211E211F231E231F251E2588E60397844272FB1F90FF93FE1F271E0BE6021E15E8
:20901B001F291E291F2B1E2B1F2F1E2F88E60297844272FB2790FF160B1E0BE6021E151F04
:20903B00311E311F331E331F351E3588E6019784429F90F71E0B5C1F371E0BE60290971E28
:20905B0015E60390421E37FF16151E0BE6031E151F3D1E3D1F051E0588F69784429F90F762
:20907B001E155C1F2D1E0BE60390971E15E60290421E2DFF1E151C00037F1E0B1C00037FF2
:20909B00965CE6036B0AE6026B09E6016B08F61643170D164572F909173B887B09190F6B7C
:2090BB003B84190D6B39163BEF021639FFFE16491E4772F93B9F193A979E193995515B401A
:0190DB008113
:00000001FF

View File

@ -0,0 +1,45 @@
update=Сб 31 янв 2015 17:31:33
last_client=eeschema
[eeschema]
version=1
LibDir=/home/eddy/Docs/ELECTRONICS/STM8/voltmeters
NetFmtName=
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=74xx
LibName8=cmos4000
LibName9=adc-dac
LibName10=memory
LibName11=xilinx
LibName12=special
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=stm8
LibName32=st-microelectronics
LibName33=stm8s105k4t6c
LibName34=stm8s003

View File

@ -17,7 +17,7 @@ Just connect lines Rx/Tx of converter to Tx/Rx of evaluation boart,
connect together lines GND and +3.3V.
Communication speed: 57600, proto: 8N1
Comminication with MCU don't need special soft: you can even run screen session
or some terminal client like _com_. Another wariant is a simple client - client-term.
or some terminal client like _com_. Another variant is a simple client - client-term.
MCU itself can print to terminal a short help about its protocol, just sent letter 'h'
to it.

View File

@ -1,4 +1,4 @@
update=Ср 26 фев 2014 17:43:07
update=Чт 13 ноя 2014 12:09:54
last_client=eeschema
[eeschema]
version=1

6
voltmeters/calc/U.m Normal file
View File

@ -0,0 +1,6 @@
function u = U(ADU)
adu = uint32(ADU)
adu *= 3584
adu = bitshift(adu, -17);
u = uint32(10*adu);
endfunction

BIN
voltmeters/calc/u5 Executable file

Binary file not shown.

20
voltmeters/calc/u5.c Normal file
View File

@ -0,0 +1,20 @@
#include <stdio.h>
#include <stdint.h>
uint32_t U(uint32_t x){
x *= 3584;
x >>= 17;
return x*10;
}
int main(int argc, char **argv){
uint32_t x = 131072;
int i;
if(argc > 1){
for(i = 1; i < argc; i++){
x = atoi(argv[i]);
printf("U(%u) = %u\n", x, U(x));
}
}else printf("U(%u) = %u\n", x, U(x));
return 0;
}

View File

@ -0,0 +1,84 @@
update=Сб 31 янв 2015 20:40:05
version=1
last_client=eeschema
[cvpcb]
version=1
NetIExt=net
[cvpcb/libraries]
EquName1=devcms
[pcbnew]
version=1
LastNetListRead=
PadDrlX=320
PadDimH=550
PadDimV=550
BoardThickness=620
TxtPcbV=600
TxtPcbH=600
TxtModV=500
TxtModH=500
TxtModW=100
VEgarde=100
DrawLar=120
EdgeLar=80
TxtLar=120
MSegLar=120
[pcbnew/libraries]
LibDir=
LibName1=sockets
LibName2=connect
LibName3=discret
LibName4=pin_array
LibName5=divers
LibName6=libcms
LibName7=display
LibName8=led
LibName9=dip_sockets
LibName10=pga_sockets
LibName11=valves
[general]
version=1
[eeschema]
version=1
LibDir=/home/eddy/Docs/ELECTRONICS/STM8/voltmeters/kicad
NetFmtName=
RptD_X=0
RptD_Y=100
RptLab=1
LabSize=60
[eeschema/libraries]
LibName1=power
LibName2=device
LibName3=transistors
LibName4=conn
LibName5=linear
LibName6=regul
LibName7=74xx
LibName8=cmos4000
LibName9=adc-dac
LibName10=memory
LibName11=xilinx
LibName12=special
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=stm8
LibName32=st-microelectronics
LibName33=/home/eddy/Docs/ELECTRONICS/STM8/voltmeters/kicad/stm8s003
LibName34=/home/eddy/Docs/ELECTRONICS/STM8/voltmeters/kicad/seven_segm
LibName35=ht7136

View File

@ -0,0 +1,211 @@
EESchema Schematic File Version 2
LIBS:power
LIBS:device
LIBS:transistors
LIBS:conn
LIBS:linear
LIBS:regul
LIBS:74xx
LIBS:cmos4000
LIBS:adc-dac
LIBS:memory
LIBS:xilinx
LIBS:special
LIBS:microcontrollers
LIBS:dsp
LIBS:microchip
LIBS:analog_switches
LIBS:motorola
LIBS:texas
LIBS:intel
LIBS:audio
LIBS:interface
LIBS:digital-audio
LIBS:philips
LIBS:display
LIBS:cypress
LIBS:siliconi
LIBS:opto
LIBS:atmel
LIBS:contrib
LIBS:valves
LIBS:stm8
LIBS:st-microelectronics
LIBS:stm8s003
LIBS:seven_segm
LIBS:ht7136
LIBS:5digit_voltmeter-cache
EELAYER 27 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date "31 jan 2015"
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L STM8S003F3P6 IC?
U 1 1 54CCE7DB
P 5500 3650
F 0 "IC?" H 5500 4250 60 0000 C CNN
F 1 "STM8S003F3P6" H 5500 2850 60 0000 C CNN
F 2 "TSSOP20" H 5400 4150 60 0001 C CNN
F 3 "~" H 5500 3650 60 0000 C CNN
1 5500 3650
1 0 0 -1
$EndComp
$Comp
L R_PACK4 RP?
U 1 1 54CCE809
P 7400 4250
F 0 "RP?" H 7400 4700 40 0000 C CNN
F 1 "220" H 7400 4200 40 0000 C CNN
F 2 "" H 7400 4250 60 0000 C CNN
F 3 "" H 7400 4250 60 0000 C CNN
1 7400 4250
1 0 0 -1
$EndComp
Wire Wire Line
6850 4200 7200 4200
Wire Wire Line
7200 4100 6850 4100
Wire Wire Line
6850 4000 7200 4000
Wire Wire Line
7200 3900 6850 3900
$Comp
L ARK-SN410362N DIS?
U 1 1 54CCF1E1
P 9600 1650
F 0 "DIS?" H 9600 2150 60 0000 C CNN
F 1 "ARK-SN410362N" H 9600 1200 60 0000 C CNN
F 2 "~" H 9600 1650 60 0000 C CNN
F 3 "~" H 9600 1650 60 0000 C CNN
1 9600 1650
1 0 0 -1
$EndComp
$Comp
L ARK-SP410361N DIS?
U 1 1 54CCF1F0
P 9700 2950
F 0 "DIS?" H 9700 3450 60 0000 C CNN
F 1 "ARK-SP410361N" H 9700 2500 60 0000 C CNN
F 2 "~" H 9450 2950 60 0000 C CNN
F 3 "~" H 9450 2950 60 0000 C CNN
1 9700 2950
1 0 0 -1
$EndComp
$Comp
L HT7136 U?
U 1 1 54CD13ED
P 2700 950
F 0 "U?" H 2850 754 60 0000 C CNN
F 1 "HT7136" H 2700 1150 60 0000 C CNN
F 2 "~" H 2700 950 60 0000 C CNN
F 3 "~" H 2700 950 60 0000 C CNN
1 2700 950
1 0 0 -1
$EndComp
$Comp
L CONN_3 K?
U 1 1 54CD13FC
P 850 900
F 0 "K?" V 800 900 50 0000 C CNN
F 1 "CONN_3" V 900 900 40 0000 C CNN
F 2 "" H 850 900 60 0000 C CNN
F 3 "" H 850 900 60 0000 C CNN
1 850 900
-1 0 0 1
$EndComp
$Comp
L GND #PWR?
U 1 1 54CD1415
P 1300 1100
F 0 "#PWR?" H 1300 1100 30 0001 C CNN
F 1 "GND" H 1300 1030 30 0001 C CNN
F 2 "" H 1300 1100 60 0000 C CNN
F 3 "" H 1300 1100 60 0000 C CNN
1 1300 1100
1 0 0 -1
$EndComp
Wire Wire Line
1300 1100 1300 1000
Wire Wire Line
1300 1000 1200 1000
Wire Wire Line
1200 800 1450 800
$Comp
L DIODESCH D?
U 1 1 54CD143B
P 1950 900
F 0 "D?" H 1950 1000 40 0000 C CNN
F 1 "DIODESCH" H 1950 800 40 0000 C CNN
F 2 "" H 1950 900 60 0000 C CNN
F 3 "" H 1950 900 60 0000 C CNN
1 1950 900
1 0 0 -1
$EndComp
Wire Wire Line
1200 900 1750 900
Wire Wire Line
2150 900 2300 900
$Comp
L GND #PWR?
U 1 1 54CD1463
P 2700 1300
F 0 "#PWR?" H 2700 1300 30 0001 C CNN
F 1 "GND" H 2700 1230 30 0001 C CNN
F 2 "" H 2700 1300 60 0000 C CNN
F 3 "" H 2700 1300 60 0000 C CNN
1 2700 1300
1 0 0 -1
$EndComp
Wire Wire Line
2700 1300 2700 1200
$Comp
L C C1
U 1 1 54CD1475
P 2200 1250
F 0 "C1" H 2250 1350 50 0000 L CNN
F 1 "100n" H 2250 1150 50 0000 L CNN
F 2 "" H 2200 1250 60 0000 C CNN
F 3 "" H 2200 1250 60 0000 C CNN
1 2200 1250
1 0 0 -1
$EndComp
Wire Wire Line
2200 1050 2200 900
Connection ~ 2200 900
$Comp
L GND #PWR?
U 1 1 54CD148D
P 2200 1550
F 0 "#PWR?" H 2200 1550 30 0001 C CNN
F 1 "GND" H 2200 1480 30 0001 C CNN
F 2 "" H 2200 1550 60 0000 C CNN
F 3 "" H 2200 1550 60 0000 C CNN
1 2200 1550
1 0 0 -1
$EndComp
Wire Wire Line
2200 1450 2200 1550
$Comp
L CP1 C2
U 1 1 54CD14C2
P 3250 1100
F 0 "C2" H 3300 1200 50 0000 L CNN
F 1 "100u" H 3300 1000 50 0000 L CNN
F 2 "" H 3250 1100 60 0000 C CNN
F 3 "" H 3250 1100 60 0000 C CNN
1 3250 1100
1 0 0 -1
$EndComp
Wire Wire Line
3250 900 3100 900
$EndSCHEMATC

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,23 @@
EESchema-LIBRARY Version 2.3 Date: Сб 31 янв 2015 20:39:54
#encoding utf-8
#
# HT7136
#
DEF HT7136 U 0 30 Y Y 1 F N
F0 "U" 150 -196 60 H V C CNN
F1 "HT7136" 0 200 60 H V C CNN
F2 "~" 0 0 60 H V C CNN
F3 "~" 0 0 60 H V C CNN
$FPLIST
SOT23*
SOT-23*
$ENDFPLIST
DRAW
S -200 -150 200 150 0 1 0 N
X GND 1 0 -250 100 U 40 40 1 1 I
X Vin 2 -400 50 200 R 40 40 1 1 I
X Vout 3 400 50 200 L 40 40 1 1 w
ENDDRAW
ENDDEF
#
#End Library

View File

@ -0,0 +1,15 @@
EESchema-LIBRARY Version 2.3 Date: Сб 31 янв 2015 21:03:33
#encoding utf-8
#
# MCP3421
#
DEF MCP3421 U 0 40 Y Y 1 F N
F0 "U" 100 550 60 H V C CNN
F1 "MCP3421" 100 -400 60 H V C CNN
F2 "~" 0 0 60 H V C CNN
F3 "~" 0 0 60 H V C CNN
DRAW
ENDDRAW
ENDDEF
#
#End Library

View File

@ -0,0 +1,67 @@
EESchema-LIBRARY Version 2.3 Date: Сб 31 янв 2015 18:14:19
#encoding utf-8
#
# ARK-SP410361N
#
DEF ARK-SP410361N DIS 0 40 Y Y 1 F N
F0 "DIS" 0 500 60 H V C CNN
F1 "ARK-SP410361N" 0 -450 60 H V C CNN
F2 "~" -250 0 60 H V C CNN
F3 "~" -250 0 60 H V C CNN
DRAW
C -320 -320 20 0 1 0 F
C 130 -320 20 0 1 0 F
C 580 -320 20 0 1 0 F
S -800 400 750 -400 0 1 0 N
P 6 0 1 0 -650 -20 -350 -20 -400 -320 -700 -320 -650 -20 -650 -20 N
P 6 0 1 0 -600 320 -300 320 -350 20 -650 20 -600 320 -600 320 N
P 6 0 1 0 -200 -20 100 -20 50 -320 -250 -320 -200 -20 -200 -20 N
P 6 0 1 0 -150 320 150 320 100 20 -200 20 -150 320 -150 320 N
P 6 0 1 0 250 -20 550 -20 500 -320 200 -320 250 -20 250 -20 N
P 6 0 1 0 300 320 600 320 550 20 250 20 300 320 300 320 N
X E 1 -1100 250 300 R 50 50 1 1 I
X D 2 -1100 150 300 R 50 50 1 1 I
X DP 3 -1100 50 300 R 50 50 1 1 I
X C 4 -1100 -50 300 R 50 50 1 1 I
X G 5 -1100 -150 300 R 50 50 1 1 I
X NC 6 -1100 -250 300 R 50 50 1 1 N
X B 7 1050 -250 300 L 50 50 1 1 I
X DIG3 8 1050 -150 300 L 50 50 1 1 I
X DIG2 9 1050 -50 300 L 50 50 1 1 I
X F 10 1050 50 300 L 50 50 1 1 I
X A 11 1050 150 300 L 50 50 1 1 I
X DIG1 12 1050 250 300 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
#
# ARK-SN410362N
#
DEF ARK-SN410362N DIS 0 40 Y Y 1 F N
F0 "DIS" 0 500 60 H V C CNN
F1 "ARK-SN410362N" 0 -450 60 H V C CNN
F2 "~" 0 0 60 H V C CNN
F3 "~" 0 0 60 H V C CNN
DRAW
C -70 -320 20 0 1 0 F
C 430 -320 20 0 1 0 F
S 550 -400 -550 450 0 1 0 N
P 6 0 1 0 -400 -20 -100 -20 -150 -320 -450 -320 -400 -20 -400 -20 N
P 6 0 1 0 -350 320 -50 320 -100 20 -400 20 -350 320 -350 320 N
P 6 0 1 0 100 -20 400 -20 350 -320 50 -320 100 -20 100 -20 N
P 6 0 1 0 150 320 450 320 400 20 100 20 150 320 150 320 N
X G 1 -850 300 300 R 50 50 1 1 I
X DP 2 -850 150 300 R 50 50 1 1 I
X A 3 -850 0 300 R 50 50 1 1 I
X F 4 -850 -150 300 R 50 50 1 1 I
X DIG2 5 -850 -300 300 R 50 50 1 1 I
X D 6 850 -300 300 L 50 50 1 1 I
X E 7 850 -150 300 L 50 50 1 1 I
X C 8 850 0 300 L 50 50 1 1 I
X B 9 850 150 300 L 50 50 1 1 I
X DIG1 10 850 300 300 L 50 50 1 1 I
ENDDRAW
#
ENDDEF
#End Library

View File

@ -0,0 +1,86 @@
EESchema-LIBRARY Version 2.3 Date: Сб 31 янв 2015 19:22:46
#encoding utf-8
#
# STM8S003F3P6
#
DEF STM8S003F3P6 IC 0 40 Y Y 1 F N
F0 "IC" 0 600 60 H V C CNN
F1 "STM8S003F3P6" 0 -800 60 H V C CNN
F2 "TSSOP20" -100 500 60 H I C CNN
F3 "~" 0 0 60 H V C CNN
$FPLIST
TSSOP*
$ENDFPLIST
DRAW
S -1100 450 1200 -650 0 1 0 N
X PD4(HS)/BEEP/TIM2_CH1/UART1_CK 1 -1250 350 149 R 40 40 1 1 B
X PD5(HS)/UART1_TX/AIN5 2 -1250 250 149 R 40 40 1 1 B
X PD6(HS)/UART1_RX/AIN6 3 -1250 150 149 R 40 40 1 1 B
X NRST 4 -1250 50 149 R 40 40 1 1 I
X PA1/OSCI 5 -1250 -50 149 R 40 40 1 1 B
X PA2/OSCOUT 6 -1250 -150 149 R 40 40 1 1 B
X VSS 7 -1250 -250 149 R 40 40 1 1 W
X Vcap 8 -1250 -350 149 R 40 40 1 1 O
X VDD 9 -1250 -450 149 R 40 40 1 1 W
X PA3(HS)/[SPI_NSS]TIM2_CH3 10 -1250 -550 149 R 40 40 1 1 B
X AIN4/ADC_ETR/TIM2_CH2/(HS)PD3 20 1350 350 149 L 40 40 1 1 B
X [TIM1_BKIN]/I2C_SDA/(T)PB5 11 1350 -550 149 L 40 40 1 1 B
X [ADC_ETR]/I2C_SCL/(T)PB4 12 1350 -450 149 L 40 40 1 1 B
X [TLI]/[TIM1_CH1N]/TIM1_CH3/(HS)PC3 13 1350 -350 149 L 40 40 1 1 B
X CLK_CCO/TIM1_CH4/AIN2/[TIM1_CH2N]/(HS)PC4 14 1350 -250 149 L 40 40 1 1 B
X [TIM2_CH1]/SPI_SCK/(HS)PC5 15 1350 -150 149 L 40 40 1 1 B
X [TIM1_CH1]/SPI_MOSI/(HS)PC6 16 1350 -50 149 L 40 40 1 1 B
X [TIM1_CH2]/SPI_MISO/(HS)PC7 17 1350 50 149 L 40 40 1 1 B
X SWIM/(HS)PD1 18 1350 150 149 L 40 40 1 1 B
X AIN3/[TIM2_CH3]/(HS)PD2 19 1350 250 149 L 40 40 1 1 B
ENDDRAW
ENDDEF
#
# STM8S003K3T
#
DEF STM8S003K3T IC 0 40 Y Y 1 F N
F0 "IC" -800 1150 60 H V C CNN
F1 "STM8S003K3T" 550 -1100 60 H V C CNN
F2 "~" 0 0 60 H V C CNN
F3 "~" 0 0 60 H V C CNN
$FPLIST
LQFP32*
$ENDFPLIST
DRAW
S -850 1100 850 -1050 0 1 10 f
X NRST 1 -1000 1000 149 R 40 40 1 1 I
X OSCI/PA1 2 1000 1000 149 L 40 40 1 1 B
X OSCOUT/PA2 3 1000 900 149 L 40 40 1 1 B
X VSS 4 0 -1200 149 U 40 40 1 1 W
X Vcap 5 -1000 -950 149 R 40 40 1 1 I
X VDD 6 0 1250 149 D 40 40 1 1 W
X [SPI_NSS]TIM2_CH3/PA3 7 1000 800 149 L 40 40 1 1 B
X PF4 8 -1000 -350 149 R 40 40 1 1 B
X PB7 9 1000 -50 149 L 40 40 1 1 B
X PB6 10 1000 50 149 L 40 40 1 1 B
X TIM1_CH3/PC3 20 1000 -400 149 L 40 40 1 1 B
X PD5/UART1_TX 30 -1000 150 149 R 40 40 1 1 B
X I2C_SDA/PB5 11 1000 150 149 L 40 40 1 1 B
X CLK_CCO/TIM1_CH4/PC4 21 1000 -500 149 L 40 40 1 1 B
X PD6/UART1_RX 31 -1000 50 149 R 40 40 1 1 B
X I2C_SCL/PB4 12 1000 250 149 L 40 40 1 1 B
X SPI_SCK/PC5 22 1000 -600 149 L 40 40 1 1 B
X PD7/TLI[TIM1_CH4] 32 -1000 -50 148 R 40 40 1 1 B
X TIM1_ETR/AIN3/PB3 13 1000 350 149 L 40 40 1 1 B
X PI_MOSI/PC6 23 1000 -700 149 L 40 40 1 1 B
X TIM1_CH3N/AIN2/PB2 14 1000 450 149 L 40 40 1 1 B
X PI_MISO/PC7 24 1000 -800 149 L 40 40 1 1 B
X TIM1_CH2N/AIN1/PB1 15 1000 550 149 L 40 40 1 1 B
X PD0/TIM1_BKIN[CLK_CCO] 25 -1000 650 148 R 40 40 1 1 B
X TIM1_CH1N/AIN0/PB0 16 1000 650 149 L 40 40 1 1 B
X PD1/SWIM 26 -1000 550 149 R 40 40 1 1 B
X PE5/SPI_NSS 17 -1000 -200 148 R 40 40 1 1 B
X PD2[TIM2_CH3] 27 -1000 450 149 R 40 40 1 1 B
X UART1_CK/TIM1_CH1/PC1 18 1000 -200 149 L 40 40 1 1 B
X PD3/ADC_ETR/TIM2_CH2 28 -1000 350 149 R 40 40 1 1 B
X TIM1_CH2/PC2 19 1000 -300 149 L 40 40 1 1 B
X PD4/BEEP/TIM2_CH1 29 -1000 250 149 R 40 40 1 1 B
ENDDRAW
ENDDEF
#
#End Library

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.