GithubHelp home page GithubHelp logo

spi not working about atmega328pb-testing HOT 8 CLOSED

watterott avatar watterott commented on July 24, 2024
spi not working

from atmega328pb-testing.

Comments (8)

awatterott avatar awatterott commented on July 24, 2024

The m328PB has two SPI ports (libraries SPI.h and SPI1.h).
Have you checked the signals with an oscilloscope or logic analyzer?

from atmega328pb-testing.

goldkwang avatar goldkwang commented on July 24, 2024

I checked the signal using oscilloscope.
SPI & SPI1 signal is not displayed. ( use watterott )
So I edit the arduino uno source and download hex to Atmega328PB -> good working

My development environment :
Atmega328PB, 16MHz, 5V
SPI Connect -> nRF8001 Bluetooth Module
Atmel Studio7 (7.0.1417)
Arduino IDE 1.8.3
AVRJTACICE MKII & AVRISP MKII

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

What do you mean with "SPI & SPI1 signal is not displayed"?
Do you use the Arduino IDE or Atmel Studio?

from atmega328pb-testing.

goldkwang avatar goldkwang commented on July 24, 2024

i mean it's not displayed at oscilloscope.
Source Compile -> Arduino IDE
Firmware Download -> Atmel Studio

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

Have you tried a basic blink program to verify that the building/compiling is working?
I have updated the SPI libs so that the SPI and SPI1 code is now the same (except registers).

from atmega328pb-testing.

goldkwang avatar goldkwang commented on July 24, 2024

Arduino basic blink Example -> Good Working
PortE Blink & PortE Input Button -> Good Working

Current state changed communication (SPI -> UART)
UART0, UART1, PortE Input, PortE Output , Analog Input (A0) -> Good Working
I did not test the SPI by removing the SPI module from the circuit.

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

Have you tried the new BSP with updated SPI libs?

from atmega328pb-testing.

awatterott avatar awatterott commented on July 24, 2024

Closing because of inactivity.

from atmega328pb-testing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.