Skip to content

Instantly share code, notes, and snippets.

View MarcosYonamine963's full-sized avatar

Marcos Yonamine MarcosYonamine963

  • Effortech
  • Londrina, Brazil
View GitHub Profile

Heap e Stack - Gerenciamento de Memória

Este gist aborda os conceitos de memória Heap e Stack que fui aprendendo conforme as necessidades. Este gist não tem o objetivo de explicar tudo sobre o assunto. É apenas uma documentação do que eu aprendi, para fins pessoais.

Introdução

O Sistema Operacional, ao carregar um programa na memória, disponibiliza ao programa um espaço de endereçamento. Esse espaço é a memória disponível para aquele programa, e é gerenciado pelo Sistema Operacional. A memória pode ser dividida da seguinte forma:

  • .text - Código fonte do programa
@MarcosYonamine963
MarcosYonamine963 / ATtiny.md
Last active August 9, 2024 03:07
Flash ATtiny with Arduino

ATtiny85 Board Pinout

a

Chip Pin PB Func ADC Digital PWM ExtI USB
1 PB5 Reset ADC1 D5 (A0) - - -
@MarcosYonamine963
MarcosYonamine963 / one-wire.md
Last active September 24, 2024 07:46
1-Wire Implementation

What is 1-Wire protocol?

The 1-Wire protocol is a proprietary protocol (Maxim/Dallas) single-wire interface, half-duplex, bidirectional, low-speed and power, long-distance serial-data communication protocol. It operates over a single data line, without clock signal. But, at least two wires are required for 1-wire bus: Data, GND. An additional wire might be necessary (Vcc), depending on powering mode. The powering modes are: parasitic (no vcc), and conventional (with vcc), as seen on figures below.

image

image

@MarcosYonamine963
MarcosYonamine963 / usb-c-pd.md
Last active December 13, 2023 15:45
USB-C PD (Power Delivery)

USB-C PD (Power Delivery)

This file explains the basics of what I learned about USB-C PD to help development engineers on their projects. I'm not an english mother-language speaker, so here I leave my apology for any mistakes.

Again, this docs relates what I learned. I'm not an expert on USB-C PD.

Introduction

The USB-C standard came with far more features than the previous standards. The thing that most catches the attention of common users is that you don't need to be aware of cable orientation (the connector is symmetrical).