DC/AC code using direct port IO

Have fun:)