Skip to content

Instantly share code, notes, and snippets.

View ossicode's full-sized avatar

OSSI ossicode

View GitHub Profile
@ossicode
ossicode / layout.def
Created February 7, 2013 10:08
OBC_LTC3105_LM94022 gerbmerge def / cfg file for eagle CAD
# This example simply takes the small Proj1 board and panelizes
# it in a 2x4 array. To demonstrate rotation, the second column
# consists of rotated jobs. You wouldn't really do it this way,
# of course, as it wastes space.
# use notepad to edit this
Row {
input_gerber1
Col {
Row {
@ossicode
ossicode / main.c
Created January 19, 2013 10:24
system timer using timer B / timer B using CCR0 for 1 sec / CCR1 for 1ms / ms is compensated every 1 sec
#include "ossiobc.h"
#include "wdt.h"
#include "timerB.h"
/*
* main.c
*/
int main(void) {
wdt_hold();
@ossicode
ossicode / clock.c
Created January 17, 2013 12:12
MSP430F2132 Watchdog timer Testcode
/*
* clock.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "clock.h"
// main clock will be shared via system
@ossicode
ossicode / clock.c
Created January 17, 2013 12:01
MSP430F1611 Watchdog timer testcode
/*
* clock.c
*
* Created on: 2013. 1. 14.
* Author: OSSI
*/
#include"clock.h"
// main clock will be shared via system
static volatile uint8_t clockMode;
@ossicode
ossicode / adc12.c
Created January 17, 2013 10:41
MSP430F1611 simple DAC12 module is added. Work with ADC12 module. see the code for the explanation
/*
* adc12.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "adc12.h"
void adc12_portSetup(uint8_t ports)
@ossicode
ossicode / aclkuart.c
Created January 17, 2013 06:46
MSP430F2132 ADC10 polling ADC10IFG version ok
/*
* aclkuart.c
*
* Created on: 2012. 12. 19.
* Author: OSSI
*/
#include "aclkuart.h"
static volatile uint8_t uart_rx_flag = 0;
static volatile uint8_t rx_byte = '\0';
@ossicode
ossicode / main.c
Created January 16, 2013 16:30
MSP430F1611 ADC12 Test OK main.c file for sharing
#include "ossiobc.h"
#include "adc12.h"
/*
* main.c
*/
uint16_t adcValueVccRef[7]={0};
uint16_t adcValueIntRef[7]={0};
uint16_t adcValueExtRef[7]={0};
int main(void) {
@ossicode
ossicode / adc12.c
Created January 16, 2013 16:29
MSP430F1611 ADC12 Test OK
/*
* adc12.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "adc12.h"
void adc12_portSetup(uint8_t ports)
@ossicode
ossicode / clock.c
Created January 16, 2013 08:33
2132 Flash Test
/*
* clock.c
*
* Created on: 2013. 1. 16.
* Author: OSSI
*/
#include "clock.h"
// main clock will be shared via system
@ossicode
ossicode / main.c
Last active December 11, 2015 03:48
snippet of how to change clock when XT2 fails and how to use resulted clock on flash write
#include "ossiobc.h"
#include "flash.h"
uint8_t data[128] ={0};
uint8_t flashData[128] ={0};
int main(void)
{
WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer